Uses of Class
org.apache.hadoop.hbase.io.hfile.HFileBlock
Package
Description
Provides implementations of
HFile
and HFile
BlockCache
.-
Uses of org.apache.hadoop.hbase.io.hfile.HFileBlock in org.apache.hadoop.hbase.io.hfile
Modifier and TypeClassDescriptionclass
org.apache.hadoop.hbase.io.hfile.ExclusiveMemHFileBlock
TheByteBuffAllocator
won't allocate pooled heapByteBuff
now; at the same time, if allocate an off-heapByteBuff
from allocator, then it must be a pooled one.class
org.apache.hadoop.hbase.io.hfile.SharedMemHFileBlock
TheByteBuffAllocator
won't allocate pooled heapByteBuff
now; at the same time, if allocate an off-heapByteBuff
from allocator, then it must be a pooled one.Modifier and TypeFieldDescriptionprotected org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileReaderImpl.HFileScannerImpl.curBlock
Modifier and TypeFieldDescriptionprotected final ArrayList<org.apache.hadoop.hbase.io.hfile.HFileBlock>
HFileReaderImpl.HFileScannerImpl.prevBlocks
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.io.hfile.HFileBlock
HFileBlockBuilder.build()
org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileBlock.BlockDeserializer.deserialize
(org.apache.hadoop.hbase.nio.ByteBuff buf, org.apache.hadoop.hbase.io.ByteBuffAllocator alloc) static org.apache.hadoop.hbase.io.hfile.HFileBlock
BlockCacheUtil.getBlockForCaching
(org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf, org.apache.hadoop.hbase.io.hfile.HFileBlock block) Similarly to HFileBlock.Writer.getBlockForCaching(), creates a HFileBlock instance without checksum for caching.org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileReaderImpl.HFileScannerImpl.getCurBlock()
org.apache.hadoop.hbase.io.hfile.HFileBlock
BlockWithScanInfo.getHFileBlock()
org.apache.hadoop.hbase.io.hfile.HFileBlock
HFile.Reader.getMetaBlock
(String metaBlockName, boolean cacheBlock) org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileReaderImpl.getMetaBlock
(String metaBlockName, boolean cacheBlock) org.apache.hadoop.hbase.io.hfile.HFileBlock
HFile.CachingBlockReader.readBlock
(long offset, long onDiskBlockSize, boolean cacheBlock, boolean pread, boolean isCompaction, boolean updateCacheMetrics, org.apache.hadoop.hbase.io.hfile.BlockType expectedBlockType, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding expectedDataBlockEncoding) Read in a file block.org.apache.hadoop.hbase.io.hfile.HFileBlock
HFile.CachingBlockReader.readBlock
(long offset, long onDiskBlockSize, boolean cacheBlock, boolean pread, boolean isCompaction, boolean updateCacheMetrics, org.apache.hadoop.hbase.io.hfile.BlockType expectedBlockType, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding expectedDataBlockEncoding, boolean cacheOnly) org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileReaderImpl.readBlock
(long dataBlockOffset, long onDiskBlockSize, boolean cacheBlock, boolean pread, boolean isCompaction, boolean updateCacheMetrics, org.apache.hadoop.hbase.io.hfile.BlockType expectedBlockType, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding expectedDataBlockEncoding) org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileReaderImpl.readBlock
(long dataBlockOffset, long onDiskBlockSize, boolean cacheBlock, boolean pread, boolean isCompaction, boolean updateCacheMetrics, org.apache.hadoop.hbase.io.hfile.BlockType expectedBlockType, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding expectedDataBlockEncoding, boolean cacheOnly) protected org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileReaderImpl.HFileScannerImpl.readNextDataBlock()
Scans blocks in the "scanned" section of theHFile
until the next data block is found.org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileBlock.retain()
org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileBlock.touch()
Calling this method in strategic locations where HFileBlocks are referenced may help diagnose potential buffer leaks.org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileBlock.touch
(Object hint) Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.io.hfile.HFileBlock>
HFileInfo.getLoadOnOpenBlocks()
Modifier and TypeMethodDescriptionBlockCache.blockFitsIntoTheCache
(org.apache.hadoop.hbase.io.hfile.HFileBlock block) Checks whether there's enough space left in the cache to accommodate the passed block.CombinedBlockCache.blockFitsIntoTheCache
(org.apache.hadoop.hbase.io.hfile.HFileBlock block) static org.apache.hadoop.hbase.io.hfile.HFileBlock
BlockCacheUtil.getBlockForCaching
(org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf, org.apache.hadoop.hbase.io.hfile.HFileBlock block) Similarly to HFileBlock.Writer.getBlockForCaching(), creates a HFileBlock instance without checksum for caching.protected org.apache.hadoop.hbase.ExtendedCell
HFileReaderImpl.EncodedScanner.getFirstKeyCellInBlock
(org.apache.hadoop.hbase.io.hfile.HFileBlock curBlock) protected org.apache.hadoop.hbase.ExtendedCell
HFileReaderImpl.HFileScannerImpl.getFirstKeyCellInBlock
(org.apache.hadoop.hbase.io.hfile.HFileBlock curBlock) void
HFileIndexBlockEncoder.EncodedSeeker.initRootIndex
(org.apache.hadoop.hbase.io.hfile.HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel) void
NoOpIndexBlockEncoder.NoOpEncodedSeeker.initRootIndex
(org.apache.hadoop.hbase.io.hfile.HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel) protected int
HFileReaderImpl.EncodedScanner.loadBlockAndSeekToKey
(org.apache.hadoop.hbase.io.hfile.HFileBlock seekToBlock, org.apache.hadoop.hbase.ExtendedCell nextIndexedKey, boolean rewind, org.apache.hadoop.hbase.ExtendedCell key, boolean seekBefore) protected int
HFileReaderImpl.HFileScannerImpl.loadBlockAndSeekToKey
(org.apache.hadoop.hbase.io.hfile.HFileBlock seekToBlock, org.apache.hadoop.hbase.ExtendedCell nextIndexedKey, boolean rewind, org.apache.hadoop.hbase.ExtendedCell key, boolean seekBefore) org.apache.hadoop.hbase.io.hfile.BlockWithScanInfo
HFileIndexBlockEncoder.EncodedSeeker.loadDataBlockWithScanInfo
(org.apache.hadoop.hbase.ExtendedCell key, org.apache.hadoop.hbase.io.hfile.HFileBlock currentBlock, boolean cacheBlocks, boolean pread, boolean isCompaction, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding expectedDataBlockEncoding, org.apache.hadoop.hbase.io.hfile.HFile.CachingBlockReader cachingBlockReader) org.apache.hadoop.hbase.io.hfile.BlockWithScanInfo
NoOpIndexBlockEncoder.NoOpEncodedSeeker.loadDataBlockWithScanInfo
(org.apache.hadoop.hbase.ExtendedCell key, org.apache.hadoop.hbase.io.hfile.HFileBlock currentBlock, boolean cacheBlocks, boolean pread, boolean isCompaction, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding expectedDataBlockEncoding, org.apache.hadoop.hbase.io.hfile.HFile.CachingBlockReader cachingBlockReader) protected void
HFileReaderImpl.HFileScannerImpl.releaseIfNotCurBlock
(org.apache.hadoop.hbase.io.hfile.HFileBlock block) The curBlock will be released by shipping or close method, so only need to consider releasing the block, which was read from HFile before and not referenced by curBlock.protected void
HFileReaderImpl.EncodedScanner.updateCurrentBlock
(org.apache.hadoop.hbase.io.hfile.HFileBlock newBlock) Updates the current block to be the givenHFileBlock
.protected void
HFileReaderImpl.HFileScannerImpl.updateCurrentBlock
(org.apache.hadoop.hbase.io.hfile.HFileBlock newBlock) Updates the current block to be the givenHFileBlock
.ModifierConstructorDescriptionBlockWithScanInfo
(org.apache.hadoop.hbase.io.hfile.HFileBlock hFileBlock, org.apache.hadoop.hbase.ExtendedCell nextIndexedKey)