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,
FileChannel fileChannel,
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, FileChannel fileChannel, UserComparator userComparator)
public long getEntryCount()
public long getFileSize() throws IOException
IOException
public void add(BlockEntry blockEntry) throws IOException
IOException
public void add(Slice key, Slice value) throws IOException
IOException
public void finish() throws IOException
IOException
public void abandon()
public static int crc32c(Slice data, CompressionType type)
public void ensureCompressedOutputCapacity(int capacity)
Copyright © 2011–2019. All rights reserved.