public abstract class Table extends Object implements SeekingIterable<Slice,Slice>
Modifier and Type | Field and Description |
---|---|
protected Comparator<Slice> |
comparator |
protected FileChannel |
fileChannel |
protected Block |
indexBlock |
protected BlockHandle |
metaindexBlockHandle |
protected String |
name |
protected static ByteBuffer |
uncompressedScratch |
protected boolean |
verifyChecksums |
Constructor and Description |
---|
Table(String name,
FileChannel fileChannel,
Comparator<Slice> comparator,
boolean verifyChecksums) |
Modifier and Type | Method and Description |
---|---|
Callable<?> |
closer() |
long |
getApproximateOffsetOf(Slice key)
Given a key, return an approximate byte offset in the file where
the data for that key begins (or would begin if the key were
present in the file).
|
protected abstract Footer |
init() |
TableIterator |
iterator() |
Block |
openBlock(Slice blockEntry) |
protected abstract Block |
readBlock(BlockHandle blockHandle) |
String |
toString() |
protected int |
uncompressedLength(ByteBuffer data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected final String name
protected final FileChannel fileChannel
protected final Comparator<Slice> comparator
protected final boolean verifyChecksums
protected final Block indexBlock
protected final BlockHandle metaindexBlockHandle
protected static ByteBuffer uncompressedScratch
public Table(String name, FileChannel fileChannel, Comparator<Slice> comparator, boolean verifyChecksums) throws IOException
IOException
protected abstract Footer init() throws IOException
IOException
public TableIterator iterator()
protected abstract Block readBlock(BlockHandle blockHandle) throws IOException
IOException
protected int uncompressedLength(ByteBuffer data) throws IOException
IOException
public long getApproximateOffsetOf(Slice key)
public Callable<?> closer()
Copyright © 2011–2019. All rights reserved.