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
protected static class NoOpIndexBlockEncoder.NoOpEncodedSeeker
extends Object
implements HFileIndexBlockEncoder.EncodedSeeker
-
Field Summary
Modifier and TypeFieldDescriptionprotected int[]
private Cell[]
protected long[]
private CellComparator
private AtomicReference<Cell>
Pre-computed mid-keyprotected int
protected long
protected int
protected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
add
(byte[] key, long offset, int dataSize) int
getRootBlockKey
(int i) long
heapSize()
Return the approximate 'exclusive deep size' of implementing object.private void
init
(HFileBlock blk, int numEntries) private void
initialize
(int numEntries) void
initRootIndex
(HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel) boolean
isEmpty()
loadDataBlockWithScanInfo
(Cell key, HFileBlock currentBlock, boolean cacheBlocks, boolean pread, boolean isCompaction, DataBlockEncoding expectedDataBlockEncoding, HFile.CachingBlockReader cachingBlockReader) midkey
(HFile.CachingBlockReader cachingBlockReader) private void
readRootIndex
(DataInput in, int numEntries) private DataInputStream
readRootIndex
(HFileBlock blk, int numEntries) int
toString()
-
Field Details
-
blockOffsets
-
blockDataSizes
-
rootCount
-
midLeafBlockOffset
-
midLeafBlockOnDiskSize
-
midKeyEntry
-
blockKeys
-
comparator
-
searchTreeLevel
-
midKey
Pre-computed mid-key
-
-
Constructor Details
-
NoOpEncodedSeeker
protected NoOpEncodedSeeker()
-
-
Method Details
-
heapSize
Description copied from interface:HeapSize
Return the approximate 'exclusive deep size' of implementing object. Includes count of payload and hosting object sizings. -
isEmpty
- Specified by:
isEmpty
in interfaceHFileIndexBlockEncoder.EncodedSeeker
-
getRootBlockKey
- Specified by:
getRootBlockKey
in interfaceHFileIndexBlockEncoder.EncodedSeeker
-
getRootBlockCount
- Specified by:
getRootBlockCount
in interfaceHFileIndexBlockEncoder.EncodedSeeker
-
initRootIndex
public void initRootIndex(HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel) throws IOException - Specified by:
initRootIndex
in interfaceHFileIndexBlockEncoder.EncodedSeeker
- Throws:
IOException
-
init
- Throws:
IOException
-
readRootIndex
- Throws:
IOException
-
readRootIndex
- Throws:
IOException
-
initialize
-
add
-
midkey
- Specified by:
midkey
in interfaceHFileIndexBlockEncoder.EncodedSeeker
- Throws:
IOException
-
loadDataBlockWithScanInfo
public BlockWithScanInfo loadDataBlockWithScanInfo(Cell key, HFileBlock currentBlock, boolean cacheBlocks, boolean pread, boolean isCompaction, DataBlockEncoding expectedDataBlockEncoding, HFile.CachingBlockReader cachingBlockReader) throws IOException - Specified by:
loadDataBlockWithScanInfo
in interfaceHFileIndexBlockEncoder.EncodedSeeker
- Throws:
IOException
-
rootBlockContainingKey
- Specified by:
rootBlockContainingKey
in interfaceHFileIndexBlockEncoder.EncodedSeeker
-
toString
-