private static class TestHFileBlockIndex.BlockReaderWrapper extends Object implements org.apache.hadoop.hbase.io.hfile.HFile.CachingBlockReader
Modifier and Type | Field and Description |
---|---|
int |
hitCount |
int |
missCount |
private org.apache.hadoop.hbase.io.hfile.HFileBlock |
prevBlock |
private long |
prevOffset |
private long |
prevOnDiskSize |
private boolean |
prevPread |
private org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReader |
realReader |
Constructor and Description |
---|
BlockReaderWrapper(org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReader realReader) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hbase.io.hfile.HFileBlock |
readBlock(long offset,
long onDiskSize,
boolean cacheBlock,
boolean pread,
boolean isCompaction,
boolean updateCacheMetrics,
org.apache.hadoop.hbase.io.hfile.BlockType expectedBlockType,
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding expectedDataBlockEncoding) |
private org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReader realReader
private long prevOffset
private long prevOnDiskSize
private boolean prevPread
private org.apache.hadoop.hbase.io.hfile.HFileBlock prevBlock
public int hitCount
public int missCount
public BlockReaderWrapper(org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReader realReader)
public org.apache.hadoop.hbase.io.hfile.HFileBlock readBlock(long offset, long onDiskSize, boolean cacheBlock, boolean pread, boolean isCompaction, boolean updateCacheMetrics, org.apache.hadoop.hbase.io.hfile.BlockType expectedBlockType, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding expectedDataBlockEncoding) throws IOException
readBlock
in interface org.apache.hadoop.hbase.io.hfile.HFile.CachingBlockReader
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.