Package org.apache.hadoop.hbase.io.hfile
Class NoOpIndexBlockEncoder.NoOpEncodedSeeker
java.lang.Object
org.apache.hadoop.hbase.io.hfile.NoOpIndexBlockEncoder.NoOpEncodedSeeker
- All Implemented Interfaces:
HeapSize,HFileIndexBlockEncoder.EncodedSeeker
- Enclosing class:
- NoOpIndexBlockEncoder
@LimitedPrivate("Unittest")
public static class NoOpIndexBlockEncoder.NoOpEncodedSeeker
extends Object
implements HFileIndexBlockEncoder.EncodedSeeker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]private ExtendedCell[]protected long[]private CellComparatorprivate AtomicReference<ExtendedCell>Pre-computed mid-keyprotected intprotected longprotected intprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidadd(byte[] key, long offset, int dataSize) intgetRootBlockKey(int i) longheapSize()Return the approximate 'exclusive deep size' of implementing object.private voidinit(HFileBlock blk, int numEntries) private voidinitialize(int numEntries) voidinitRootIndex(HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel) booleanisEmpty()loadDataBlockWithScanInfo(ExtendedCell key, HFileBlock currentBlock, boolean cacheBlocks, boolean pread, boolean isCompaction, DataBlockEncoding expectedDataBlockEncoding, HFile.CachingBlockReader cachingBlockReader) midkey(HFile.CachingBlockReader cachingBlockReader) private voidreadRootIndex(DataInput in, int numEntries) private DataInputStreamreadRootIndex(HFileBlock blk, int numEntries) inttoString()
-
Field Details
-
blockOffsets
-
blockDataSizes
-
rootCount
-
midLeafBlockOffset
-
midLeafBlockOnDiskSize
-
midKeyEntry
-
blockKeys
-
comparator
-
searchTreeLevel
-
midKey
Pre-computed mid-key
-
-
Constructor Details
-
NoOpEncodedSeeker
public NoOpEncodedSeeker()
-
-
Method Details
-
heapSize
Description copied from interface:HeapSizeReturn the approximate 'exclusive deep size' of implementing object. Includes count of payload and hosting object sizings. -
isEmpty
- Specified by:
isEmptyin interfaceHFileIndexBlockEncoder.EncodedSeeker
-
getRootBlockKey
- Specified by:
getRootBlockKeyin interfaceHFileIndexBlockEncoder.EncodedSeeker
-
getRootBlockCount
- Specified by:
getRootBlockCountin interfaceHFileIndexBlockEncoder.EncodedSeeker
-
initRootIndex
public void initRootIndex(HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel) throws IOException - Specified by:
initRootIndexin interfaceHFileIndexBlockEncoder.EncodedSeeker- Throws:
IOException
-
init
- Throws:
IOException
-
readRootIndex
- Throws:
IOException
-
readRootIndex
- Throws:
IOException
-
initialize
-
add
-
midkey
- Specified by:
midkeyin interfaceHFileIndexBlockEncoder.EncodedSeeker- Throws:
IOException
-
loadDataBlockWithScanInfo
public BlockWithScanInfo loadDataBlockWithScanInfo(ExtendedCell key, HFileBlock currentBlock, boolean cacheBlocks, boolean pread, boolean isCompaction, DataBlockEncoding expectedDataBlockEncoding, HFile.CachingBlockReader cachingBlockReader) throws IOException - Specified by:
loadDataBlockWithScanInfoin interfaceHFileIndexBlockEncoder.EncodedSeeker- Throws:
IOException
-
rootBlockContainingKey
- Specified by:
rootBlockContainingKeyin interfaceHFileIndexBlockEncoder.EncodedSeeker
-
toString
-