protected static class NoOpIndexBlockEncoder.NoOpEncodedSeeker extends Object implements HFileIndexBlockEncoder.EncodedSeeker
Modifier and Type | Field and Description |
---|---|
protected int[] |
blockDataSizes |
private Cell[] |
blockKeys |
protected long[] |
blockOffsets |
private CellComparator |
comparator |
private AtomicReference<Cell> |
midKey
Pre-computed mid-key
|
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 |
---|---|
private void |
add(byte[] key,
long offset,
int dataSize) |
int |
getRootBlockCount() |
Cell |
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() |
BlockWithScanInfo |
loadDataBlockWithScanInfo(Cell key,
HFileBlock currentBlock,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
DataBlockEncoding expectedDataBlockEncoding,
HFile.CachingBlockReader cachingBlockReader) |
Cell |
midkey(HFile.CachingBlockReader cachingBlockReader) |
private void |
readRootIndex(DataInput in,
int numEntries) |
private DataInputStream |
readRootIndex(HFileBlock blk,
int numEntries) |
int |
rootBlockContainingKey(Cell key) |
String |
toString() |
protected long[] blockOffsets
protected int[] blockDataSizes
protected int rootCount
protected long midLeafBlockOffset
protected int midLeafBlockOnDiskSize
protected int midKeyEntry
private CellComparator comparator
protected int searchTreeLevel
private AtomicReference<Cell> midKey
protected NoOpEncodedSeeker()
public long heapSize()
HeapSize
public boolean isEmpty()
isEmpty
in interface HFileIndexBlockEncoder.EncodedSeeker
public Cell getRootBlockKey(int i)
getRootBlockKey
in interface HFileIndexBlockEncoder.EncodedSeeker
public int getRootBlockCount()
getRootBlockCount
in interface HFileIndexBlockEncoder.EncodedSeeker
public void initRootIndex(HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel) throws IOException
initRootIndex
in interface HFileIndexBlockEncoder.EncodedSeeker
IOException
private void init(HFileBlock blk, int numEntries) throws IOException
IOException
private DataInputStream readRootIndex(HFileBlock blk, int numEntries) throws IOException
IOException
private void readRootIndex(DataInput in, int numEntries) throws IOException
IOException
private void initialize(int numEntries)
private void add(byte[] key, long offset, int dataSize)
public Cell midkey(HFile.CachingBlockReader cachingBlockReader) throws IOException
midkey
in interface HFileIndexBlockEncoder.EncodedSeeker
IOException
public BlockWithScanInfo loadDataBlockWithScanInfo(Cell key, HFileBlock currentBlock, boolean cacheBlocks, boolean pread, boolean isCompaction, DataBlockEncoding expectedDataBlockEncoding, HFile.CachingBlockReader cachingBlockReader) throws IOException
loadDataBlockWithScanInfo
in interface HFileIndexBlockEncoder.EncodedSeeker
IOException
public int rootBlockContainingKey(Cell key)
rootBlockContainingKey
in interface HFileIndexBlockEncoder.EncodedSeeker
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.