public class TableBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
TABLE_MAGIC_NUMBER
TABLE_MAGIC_NUMBER was picked by running
echo http://code.google.com/p/leveldb/ | sha1sum
and taking the leading 64 bits.
|
| Constructor and Description |
|---|
TableBuilder(Options options,
WritableFile file,
UserComparator userComparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
abandon() |
void |
add(BlockEntry blockEntry) |
void |
add(Slice key,
Slice value) |
static int |
crc32c(Slice data,
CompressionType type) |
void |
ensureCompressedOutputCapacity(int capacity) |
void |
finish() |
long |
getEntryCount() |
long |
getFileSize() |
public static final long TABLE_MAGIC_NUMBER
public TableBuilder(Options options, WritableFile file, UserComparator userComparator)
public long getEntryCount()
public long getFileSize()
public void add(BlockEntry blockEntry) throws IOException
IOExceptionpublic void add(Slice key, Slice value) throws IOException
IOExceptionpublic void finish()
throws IOException
IOExceptionpublic void abandon()
public static int crc32c(Slice data, CompressionType type)
public void ensureCompressedOutputCapacity(int capacity)
Copyright © 2011–2020. All rights reserved.