Uses of Enum Class
org.apache.hadoop.hbase.io.hfile.BlockType
Packages that use org.apache.hadoop.hbase.io.hfile.BlockType
Package
Description
Provides implementations of
HFile and HFile
BlockCache.-
Uses of org.apache.hadoop.hbase.io.hfile.BlockType in org.apache.hadoop.hbase.io.encoding
Methods in org.apache.hadoop.hbase.io.encoding that return org.apache.hadoop.hbase.io.hfile.BlockType in inModifier and TypeMethodDescriptionorg.apache.hadoop.hbase.io.hfile.BlockTypeHFileBlockDefaultEncodingContext.getBlockType()org.apache.hadoop.hbase.io.hfile.BlockTypeHFileBlockEncodingContext.getBlockType()Returns the block type after encodingMethods in org.apache.hadoop.hbase.io.encoding with parameters of type org.apache.hadoop.hbase.io.hfile.BlockType in inModifier and TypeMethodDescriptionvoidHFileBlockDefaultEncodingContext.postEncoding(org.apache.hadoop.hbase.io.hfile.BlockType blockType) voidHFileBlockEncodingContext.postEncoding(org.apache.hadoop.hbase.io.hfile.BlockType blockType) Do any action that needs to be performed after the encoding. -
Uses of org.apache.hadoop.hbase.io.hfile.BlockType in org.apache.hadoop.hbase.io.hfile
Methods in org.apache.hadoop.hbase.io.hfile that return org.apache.hadoop.hbase.io.hfile.BlockType in inModifier and TypeMethodDescriptionorg.apache.hadoop.hbase.io.hfile.BlockTypeBlockCacheKey.getBlockType()org.apache.hadoop.hbase.io.hfile.BlockTypeCacheable.getBlockType()Returns the block type of this cached HFile blockorg.apache.hadoop.hbase.io.hfile.BlockTypeCachedBlock.getBlockType()org.apache.hadoop.hbase.io.hfile.BlockTypeHFileBlock.getBlockType()org.apache.hadoop.hbase.io.hfile.BlockTypeCompoundBloomFilterWriter.getInlineBlockType()org.apache.hadoop.hbase.io.hfile.BlockTypeHFileBlockIndex.BlockIndexWriter.getInlineBlockType()org.apache.hadoop.hbase.io.hfile.BlockTypeInlineBlockWriter.getInlineBlockType()The type of blocks this block writer produces.static org.apache.hadoop.hbase.io.hfile.BlockTypeBlockType.parse(byte[] buf, int offset, int length) static org.apache.hadoop.hbase.io.hfile.BlockTypeBlockType.read(DataInputStream in) static org.apache.hadoop.hbase.io.hfile.BlockTypeBlockType.read(org.apache.hadoop.hbase.nio.ByteBuff buf) static org.apache.hadoop.hbase.io.hfile.BlockTypeBlockType.valueOf(String name) static org.apache.hadoop.hbase.io.hfile.BlockType[]BlockType.values()Methods in org.apache.hadoop.hbase.io.hfile with parameters of type org.apache.hadoop.hbase.io.hfile.BlockType in inModifier and TypeMethodDescriptionvoidHFileDataBlockEncoder.endBlockEncoding(org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader, org.apache.hadoop.hbase.io.hfile.BlockType blockType) Ends encoding for a block of KeyValues.voidHFileDataBlockEncoderImpl.endBlockEncoding(org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader, org.apache.hadoop.hbase.io.hfile.BlockType blockType) voidNoOpDataBlockEncoder.endBlockEncoding(org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader, org.apache.hadoop.hbase.io.hfile.BlockType blockType) default org.apache.hadoop.hbase.io.hfile.CacheableBlockCache.getBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, boolean caching, boolean repeat, boolean updateCacheMetrics, org.apache.hadoop.hbase.io.hfile.BlockType blockType) Fetch block from cache.org.apache.hadoop.hbase.io.hfile.CacheableCombinedBlockCache.getBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, boolean caching, boolean repeat, boolean updateCacheMetrics, org.apache.hadoop.hbase.io.hfile.BlockType blockType) org.apache.hadoop.hbase.io.hfile.HFileBlockHFileReaderImpl.getCachedBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey, boolean cacheBlock, boolean useLock, boolean updateCacheMetrics, org.apache.hadoop.hbase.io.hfile.BlockType expectedBlockType, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding expectedDataBlockEncoding) Retrieve block from cache.voidCacheStats.hit(boolean caching, boolean primary, org.apache.hadoop.hbase.io.hfile.BlockType type) default booleanBlockCache.isMetaBlock(org.apache.hadoop.hbase.io.hfile.BlockType blockType) Check if block type is meta or index blockvoidCacheStats.miss(boolean caching, boolean primary, org.apache.hadoop.hbase.io.hfile.BlockType type) org.apache.hadoop.hbase.io.hfile.HFileBlockHFileBlock.BlockIterator.nextBlockWithBlockType(org.apache.hadoop.hbase.io.hfile.BlockType blockType) Similar toHFileBlock.BlockIterator.nextBlock()but checks block type, throws an exception if incorrect, and returns the HFile blockorg.apache.hadoop.hbase.io.hfile.HFileBlockHFile.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.HFileBlockHFile.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.HFileBlockHFileReaderImpl.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.HFileBlockHFileReaderImpl.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) voidBlockCacheKey.setBlockType(org.apache.hadoop.hbase.io.hfile.BlockType blockType) booleanCacheConfig.shouldLockOnCacheMiss(org.apache.hadoop.hbase.io.hfile.BlockType blockType) If we make sure the block could not be cached, we will not acquire the lock otherwise we will acquire lockbooleanCacheConfig.shouldReadBlockFromCache(org.apache.hadoop.hbase.io.hfile.BlockType blockType) Return true if we may find this type of block in block cache.org.apache.hadoop.hbase.io.hfile.HFileBlockBuilderHFileBlockBuilder.withBlockType(org.apache.hadoop.hbase.io.hfile.BlockType blockType) Constructors in org.apache.hadoop.hbase.io.hfile with parameters of type org.apache.hadoop.hbase.io.hfile.BlockType in inModifierConstructorDescriptionBlockCacheKey(String hfileName, long offset, boolean isPrimaryReplica, org.apache.hadoop.hbase.io.hfile.BlockType blockType) Constructs a new BlockCacheKey with the file name, offset, replica and type only.BlockCacheKey(String hfileName, String cfName, String regionName, long offset, boolean isPrimaryReplica, org.apache.hadoop.hbase.io.hfile.BlockType blockType, boolean archived) Construct a new BlockCacheKey, with file, column family and region information.BlockCacheKey(org.apache.hadoop.fs.Path hfilePath, long offset, boolean isPrimaryReplica, org.apache.hadoop.hbase.io.hfile.BlockType blockType) Construct a new BlockCacheKey using a file path.HFileBlock(org.apache.hadoop.hbase.io.hfile.BlockType blockType, int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, long prevBlockOffset, org.apache.hadoop.hbase.nio.ByteBuff buf, boolean fillHeader, long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator) Creates a newHFileblock from the given fields. -
Uses of org.apache.hadoop.hbase.io.hfile.BlockType in org.apache.hadoop.hbase.regionserver
Methods in org.apache.hadoop.hbase.regionserver with parameters of type org.apache.hadoop.hbase.io.hfile.BlockType in inModifier and TypeMethodDescriptionvoidStoreFileReader.loadBloomfilter(org.apache.hadoop.hbase.io.hfile.BlockType blockType, org.apache.hadoop.hbase.io.hfile.BloomFilterMetrics metrics)