Uses of Enum
org.apache.hadoop.hbase.io.hfile.BlockType
Packages that use BlockType
Package
Description
Provides implementations of
HFile and HFile
BlockCache.Provides
BucketCache, an implementation of
BlockCache.-
Uses of BlockType in org.apache.hadoop.hbase.io.encoding
Fields in org.apache.hadoop.hbase.io.encoding declared as BlockTypeMethods in org.apache.hadoop.hbase.io.encoding that return BlockTypeModifier and TypeMethodDescriptionHFileBlockDefaultEncodingContext.getBlockType()HFileBlockEncodingContext.getBlockType()Returns the block type after encodingMethods in org.apache.hadoop.hbase.io.encoding with parameters of type BlockTypeModifier and TypeMethodDescriptionvoidHFileBlockDefaultEncodingContext.postEncoding(BlockType blockType) voidHFileBlockEncodingContext.postEncoding(BlockType blockType) Do any action that needs to be performed after the encoding. -
Uses of BlockType in org.apache.hadoop.hbase.io.hfile
Fields in org.apache.hadoop.hbase.io.hfile declared as BlockTypeModifier and TypeFieldDescriptionprivate BlockTypeBlockCacheKey.blockTypeprivate BlockTypeHFileBlock.blockTypeType of block.private BlockTypeHFileBlock.Writer.blockTypeCurrent block type.private BlockTypeHFileBlockBuilder.blockTypeMethods in org.apache.hadoop.hbase.io.hfile that return BlockTypeModifier and TypeMethodDescriptionBlockCacheKey.getBlockType()Cacheable.getBlockType()Returns the block type of this cached HFile blockCachedBlock.getBlockType()HFileBlock.BlockWritable.getBlockType()The type of block this data should use.HFileBlock.getBlockType()TinyLfuBlockCache.CachedBlockView.getBlockType()CompoundBloomFilterWriter.getInlineBlockType()HFileBlockIndex.BlockIndexWriter.getInlineBlockType()InlineBlockWriter.getInlineBlockType()The type of blocks this block writer produces.static BlockTypeBlockType.parse(byte[] buf, int offset, int length) static BlockTypeBlockType.read(DataInputStream in) static BlockTypestatic BlockTypeReturns the enum constant of this type with the specified name.static BlockType[]BlockType.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.apache.hadoop.hbase.io.hfile with parameters of type BlockTypeModifier and TypeMethodDescriptionprivate voidHFileWriterImpl.addBloomFilter(BloomFilterWriter bfw, BlockType blockType) voidHFileDataBlockEncoder.endBlockEncoding(HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader, BlockType blockType) Ends encoding for a block of KeyValues.voidHFileDataBlockEncoderImpl.endBlockEncoding(HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader, BlockType blockType) voidNoOpDataBlockEncoder.endBlockEncoding(HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader, BlockType blockType) private DataInputHFileReaderImpl.getBloomFilterMetadata(BlockType blockType) private HFileBlockHFileReaderImpl.getCachedBlock(BlockCacheKey cacheKey, boolean cacheBlock, boolean useLock, boolean updateCacheMetrics, BlockType expectedBlockType, DataBlockEncoding expectedDataBlockEncoding) Retrieve block from cache.voiddefault booleanBlockCache.isMetaBlock(BlockType blockType) Check if block type is meta or index blockvoidHFileBlock.BlockIterator.nextBlockWithBlockType(BlockType blockType) Similar toHFileBlock.BlockIterator.nextBlock()but checks block type, throws an exception if incorrect, and returns the HFile blockHFile.CachingBlockReader.readBlock(long offset, long onDiskBlockSize, boolean cacheBlock, boolean pread, boolean isCompaction, boolean updateCacheMetrics, BlockType expectedBlockType, DataBlockEncoding expectedDataBlockEncoding) Read in a file block.HFile.CachingBlockReader.readBlock(long offset, long onDiskBlockSize, boolean cacheBlock, boolean pread, boolean isCompaction, boolean updateCacheMetrics, BlockType expectedBlockType, DataBlockEncoding expectedDataBlockEncoding, boolean cacheOnly) HFileReaderImpl.readBlock(long dataBlockOffset, long onDiskBlockSize, boolean cacheBlock, boolean pread, boolean isCompaction, boolean updateCacheMetrics, BlockType expectedBlockType, DataBlockEncoding expectedDataBlockEncoding) HFileReaderImpl.readBlock(long dataBlockOffset, long onDiskBlockSize, boolean cacheBlock, boolean pread, boolean isCompaction, boolean updateCacheMetrics, BlockType expectedBlockType, DataBlockEncoding expectedDataBlockEncoding, boolean cacheOnly) private voidHFileBlock.sanityCheckAssertion(BlockType valueFromBuf, BlockType valueFromField) voidBlockCacheKey.setBlockType(BlockType blockType) booleanCacheConfig.shouldLockOnCacheMiss(BlockType blockType) If we make sure the block could not be cached, we will not acquire the lock otherwise we will acquire lockbooleanCacheConfig.shouldReadBlockFromCache(BlockType blockType) Return true if we may find this type of block in block cache.private booleanHFileReaderImpl.shouldUseHeap(BlockType expectedBlockType, boolean cacheBlock) Whether we use heap or not depends on our intent to cache the block.(package private) DataOutputStreamHFileBlock.Writer.startWriting(BlockType newBlockType) Starts writing into the block.private voidHFileReaderImpl.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.HFileBlockBuilder.withBlockType(BlockType blockType) Constructors in org.apache.hadoop.hbase.io.hfile with parameters of type BlockTypeModifierConstructorDescriptionBlockCacheKey(String hfileName, long offset, boolean isPrimaryReplica, BlockType blockType) (package private)ExclusiveMemHFileBlock(BlockType blockType, int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, long prevBlockOffset, ByteBuff buf, boolean fillHeader, long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader, HFileContext fileContext, ByteBuffAllocator alloc) HFileBlock(BlockType blockType, int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, long prevBlockOffset, ByteBuff buf, boolean fillHeader, long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader, HFileContext fileContext, ByteBuffAllocator allocator) Creates a newHFileblock from the given fields.(package private)SharedMemHFileBlock(BlockType blockType, int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, long prevBlockOffset, ByteBuff buf, boolean fillHeader, long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader, HFileContext fileContext, ByteBuffAllocator alloc) -
Uses of BlockType in org.apache.hadoop.hbase.io.hfile.bucket
Methods in org.apache.hadoop.hbase.io.hfile.bucket that return BlockTypeModifier and TypeMethodDescriptionprivate static BlockTypeBucketProtoUtils.fromPb(org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BlockType blockType) Methods in org.apache.hadoop.hbase.io.hfile.bucket with parameters of type BlockType -
Uses of BlockType in org.apache.hadoop.hbase.regionserver
Methods in org.apache.hadoop.hbase.regionserver with parameters of type BlockTypeModifier and TypeMethodDescriptionvoidStoreFileReader.loadBloomfilter(BlockType blockType, BloomFilterMetrics metrics) (package private) voidStoreFileReader.setBloomFilterFaulty(BlockType blockType)