protected static class NoOpIndexBlockEncoder.NoOpEncodedSeeker extends Object implements HFileIndexBlockEncoder.EncodedSeeker
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
blockDataSizes |
protected long[] |
blockOffsets |
protected int |
midKeyEntry |
protected long |
midLeafBlockOffset |
protected int |
midLeafBlockOnDiskSize |
protected int |
rootCount |
protected int |
searchTreeLevel |
| Modifier | Constructor and Description |
|---|---|
protected |
NoOpEncodedSeeker() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getNonRootIndexedKey(ByteBuff nonRootIndex,
int i)
The indexed key at the ith position in the nonRootIndex.
|
int |
getRootBlockCount() |
Cell |
getRootBlockKey(int i) |
long |
heapSize() |
void |
initRootIndex(HFileBlock blk,
int numEntries,
CellComparator comparator,
int treeLevel) |
boolean |
isEmpty() |
BlockWithScanInfo |
loadDataBlockWithScanInfo(Cell key,
HFileBlock currentBlock,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
DataBlockEncoding expectedDataBlockEncoding,
HFile.CachingBlockReader cachingBlockReader) |
Cell |
midkey(HFile.CachingBlockReader cachingBlockReader) |
int |
rootBlockContainingKey(Cell key) |
String |
toString() |
protected long[] blockOffsets
protected int[] blockDataSizes
protected int rootCount
protected long midLeafBlockOffset
protected int midLeafBlockOnDiskSize
protected int midKeyEntry
protected int searchTreeLevel
public boolean isEmpty()
isEmpty in interface HFileIndexBlockEncoder.EncodedSeekerpublic Cell getRootBlockKey(int i)
getRootBlockKey in interface HFileIndexBlockEncoder.EncodedSeekerpublic int getRootBlockCount()
getRootBlockCount in interface HFileIndexBlockEncoder.EncodedSeekerpublic void initRootIndex(HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel) throws IOException
initRootIndex in interface HFileIndexBlockEncoder.EncodedSeekerIOExceptionpublic Cell midkey(HFile.CachingBlockReader cachingBlockReader) throws IOException
midkey in interface HFileIndexBlockEncoder.EncodedSeekerIOExceptionpublic BlockWithScanInfo loadDataBlockWithScanInfo(Cell key, HFileBlock currentBlock, boolean cacheBlocks, boolean pread, boolean isCompaction, DataBlockEncoding expectedDataBlockEncoding, HFile.CachingBlockReader cachingBlockReader) throws IOException
loadDataBlockWithScanInfo in interface HFileIndexBlockEncoder.EncodedSeekerIOExceptionpublic int rootBlockContainingKey(Cell key)
rootBlockContainingKey in interface HFileIndexBlockEncoder.EncodedSeekerprotected byte[] getNonRootIndexedKey(ByteBuff nonRootIndex, int i)
i - the ith positionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.