Package | Description |
---|---|
org.apache.hadoop.hbase.io.hfile |
Provides implementations of
HFile and HFile
BlockCache . |
Modifier and Type | Field and Description |
---|---|
protected HFileBlock |
HFileReaderV2.AbstractScannerV2.block |
private HFileBlock |
BlockWithScanInfo.hFileBlock |
Modifier and Type | Field and Description |
---|---|
private List<HFileBlock> |
HFileReaderV2.loadOnOpenBlocks
Blocks read from the load-on-open section, excluding data root index, meta
index, and file info.
|
Modifier and Type | Method and Description |
---|---|
HFileBlock |
MemcachedBlockCache.HFileBlockTranscoder.decode(net.spy.memcached.CachedData d) |
HFileBlock |
HFileBlock.Writer.getBlockForCaching(CacheConfig cacheConf)
Creates a new HFileBlock.
|
private HFileBlock |
HFileReaderV2.getCachedBlock(BlockCacheKey cacheKey,
boolean cacheBlock,
boolean useLock,
boolean isCompaction,
boolean updateCacheMetrics,
BlockType expectedBlockType,
DataBlockEncoding expectedDataBlockEncoding)
Retrieve block from cache.
|
HFileBlock |
BlockWithScanInfo.getHFileBlock() |
HFileBlock |
HFileBlock.BlockIterator.nextBlock()
Get the next block, or null if there are no more blocks to iterate.
|
HFileBlock |
HFileBlock.BlockIterator.nextBlockWithBlockType(BlockType blockType)
Similar to
HFileBlock.BlockIterator.nextBlock() but checks block type, throws an
exception if incorrect, and returns the HFile block |
HFileBlock |
HFileReaderV2.readBlock(long dataBlockOffset,
long onDiskBlockSize,
boolean cacheBlock,
boolean pread,
boolean isCompaction,
boolean updateCacheMetrics,
BlockType expectedBlockType,
DataBlockEncoding expectedDataBlockEncoding) |
HFileBlock |
HFile.CachingBlockReader.readBlock(long offset,
long onDiskBlockSize,
boolean cacheBlock,
boolean pread,
boolean isCompaction,
boolean updateCacheMetrics,
BlockType expectedBlockType,
DataBlockEncoding expectedDataBlockEncoding)
Read in a file block.
|
HFileBlock |
HFileBlock.FSReader.readBlockData(long offset,
long onDiskSize,
int uncompressedSize,
boolean pread)
Reads the block at the given offset in the file with the given on-disk
size and uncompressed size.
|
HFileBlock |
HFileBlock.FSReaderImpl.readBlockData(long offset,
long onDiskSizeWithHeaderL,
int uncompressedSize,
boolean pread)
Reads a version 2 block (version 1 blocks not supported and not expected).
|
protected HFileBlock |
HFileBlock.FSReaderImpl.readBlockDataInternal(org.apache.hadoop.fs.FSDataInputStream is,
long offset,
int onDiskSizeWithHeader,
int uncompressedSize,
boolean pread,
boolean verifyChecksum)
Reads a version 2 block.
|
protected HFileBlock |
HFileReaderV2.AbstractScannerV2.readNextDataBlock()
Scans blocks in the "scanned" section of the
HFile until the next
data block is found. |
HFileBlock |
HFileBlockIndex.BlockIndexReader.seekToDataBlock(Cell key,
HFileBlock currentBlock,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
DataBlockEncoding expectedDataBlockEncoding)
Return the data block which contains this key.
|
(package private) HFileBlock |
HFileBlock.unpack(HFileContext fileContext,
HFileBlock.FSReader reader)
Retrieves the decompressed/decrypted view of this block.
|
Modifier and Type | Method and Description |
---|---|
net.spy.memcached.CachedData |
MemcachedBlockCache.HFileBlockTranscoder.encode(HFileBlock block) |
private ByteBuffer |
HFileReaderV2.EncodedScannerV2.getEncodedBuffer(HFileBlock newBlock) |
protected abstract ByteBuffer |
HFileReaderV2.AbstractScannerV2.getFirstKeyInBlock(HFileBlock curBlock) |
protected ByteBuffer |
HFileReaderV2.ScannerV2.getFirstKeyInBlock(HFileBlock curBlock) |
protected ByteBuffer |
HFileReaderV2.EncodedScannerV2.getFirstKeyInBlock(HFileBlock curBlock) |
protected abstract int |
HFileReaderV2.AbstractScannerV2.loadBlockAndSeekToKey(HFileBlock seekToBlock,
Cell nextIndexedKey,
boolean rewind,
Cell key,
boolean seekBefore) |
protected int |
HFileReaderV2.ScannerV2.loadBlockAndSeekToKey(HFileBlock seekToBlock,
Cell nextIndexedKey,
boolean rewind,
Cell key,
boolean seekBefore) |
protected int |
HFileReaderV2.EncodedScannerV2.loadBlockAndSeekToKey(HFileBlock seekToBlock,
Cell nextIndexedKey,
boolean rewind,
Cell key,
boolean seekBefore) |
BlockWithScanInfo |
HFileBlockIndex.BlockIndexReader.loadDataBlockWithScanInfo(Cell key,
HFileBlock currentBlock,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
DataBlockEncoding expectedDataBlockEncoding)
Return the BlockWithScanInfo which contains the DataBlock with other scan
info such as nextIndexedKey.
|
void |
HFileBlockIndex.BlockIndexReader.readMultiLevelIndexRoot(HFileBlock blk,
int numEntries)
Read the root-level metadata of a multi-level block index.
|
DataInputStream |
HFileBlockIndex.BlockIndexReader.readRootIndex(HFileBlock blk,
int numEntries)
Read in the root-level index from the given input stream.
|
HFileBlock |
HFileBlockIndex.BlockIndexReader.seekToDataBlock(Cell key,
HFileBlock currentBlock,
boolean cacheBlocks,
boolean pread,
boolean isCompaction,
DataBlockEncoding expectedDataBlockEncoding)
Return the data block which contains this key.
|
protected void |
HFileReaderV2.ScannerV2.updateCurrBlock(HFileBlock newBlock)
Updates the current block to be the given
HFileBlock . |
private void |
HFileReaderV2.EncodedScannerV2.updateCurrentBlock(HFileBlock newBlock)
Updates the current block to be the given
HFileBlock . |
private void |
HFileReaderV2.validateBlockType(HFileBlock block,
BlockType expectedBlockType)
Compares the actual type of a block retrieved from cache or disk with its
expected type and throws an exception in case of a mismatch.
|
Constructor and Description |
---|
BlockWithScanInfo(HFileBlock hFileBlock,
Cell nextIndexedKey) |
HFileBlock(HFileBlock that)
Copy constructor.
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.