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 in
    Modifier and Type
    Method
    Description
    org.apache.hadoop.hbase.io.hfile.BlockType
    HFileBlockDefaultEncodingContext.getBlockType()
     
    org.apache.hadoop.hbase.io.hfile.BlockType
    HFileBlockEncodingContext.getBlockType()
    Returns the block type after encoding
    Methods in org.apache.hadoop.hbase.io.encoding with parameters of type org.apache.hadoop.hbase.io.hfile.BlockType in in
    Modifier and Type
    Method
    Description
    void
    HFileBlockDefaultEncodingContext.postEncoding(org.apache.hadoop.hbase.io.hfile.BlockType blockType)
     
    void
    HFileBlockEncodingContext.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 in
    Modifier and Type
    Method
    Description
    org.apache.hadoop.hbase.io.hfile.BlockType
    BlockCacheKey.getBlockType()
     
    org.apache.hadoop.hbase.io.hfile.BlockType
    Cacheable.getBlockType()
    Returns the block type of this cached HFile block
    org.apache.hadoop.hbase.io.hfile.BlockType
    CachedBlock.getBlockType()
     
    org.apache.hadoop.hbase.io.hfile.BlockType
    HFileBlock.getBlockType()
     
    org.apache.hadoop.hbase.io.hfile.BlockType
    CompoundBloomFilterWriter.getInlineBlockType()
     
    org.apache.hadoop.hbase.io.hfile.BlockType
    HFileBlockIndex.BlockIndexWriter.getInlineBlockType()
     
    org.apache.hadoop.hbase.io.hfile.BlockType
    InlineBlockWriter.getInlineBlockType()
    The type of blocks this block writer produces.
    static org.apache.hadoop.hbase.io.hfile.BlockType
    BlockType.parse(byte[] buf, int offset, int length)
     
    static org.apache.hadoop.hbase.io.hfile.BlockType
    BlockType.read(DataInputStream in)
     
    static org.apache.hadoop.hbase.io.hfile.BlockType
    BlockType.read(org.apache.hadoop.hbase.nio.ByteBuff buf)
     
    static org.apache.hadoop.hbase.io.hfile.BlockType
    BlockType.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 in
    Modifier and Type
    Method
    Description
    void
    HFileDataBlockEncoder.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.
    void
    HFileDataBlockEncoderImpl.endBlockEncoding(org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader, org.apache.hadoop.hbase.io.hfile.BlockType blockType)
     
    void
    NoOpDataBlockEncoder.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.Cacheable
    BlockCache.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.Cacheable
    CombinedBlockCache.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.HFileBlock
    HFileReaderImpl.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.
    void
    CacheStats.hit(boolean caching, boolean primary, org.apache.hadoop.hbase.io.hfile.BlockType type)
     
    default boolean
    BlockCache.isMetaBlock(org.apache.hadoop.hbase.io.hfile.BlockType blockType)
    Check if block type is meta or index block
    void
    CacheStats.miss(boolean caching, boolean primary, org.apache.hadoop.hbase.io.hfile.BlockType type)
     
    org.apache.hadoop.hbase.io.hfile.HFileBlock
    HFileBlock.BlockIterator.nextBlockWithBlockType(org.apache.hadoop.hbase.io.hfile.BlockType blockType)
    Similar to HFileBlock.BlockIterator.nextBlock() but checks block type, throws an exception if incorrect, and returns the HFile 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)
    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)
     
    void
    BlockCacheKey.setBlockType(org.apache.hadoop.hbase.io.hfile.BlockType blockType)
     
    boolean
    CacheConfig.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 lock
    boolean
    CacheConfig.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.HFileBlockBuilder
    HFileBlockBuilder.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 in
    Modifier
    Constructor
    Description
     
    BlockCacheKey(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 new HFile block 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 in
    Modifier and Type
    Method
    Description
    void
    StoreFileReader.loadBloomfilter(org.apache.hadoop.hbase.io.hfile.BlockType blockType, org.apache.hadoop.hbase.io.hfile.BloomFilterMetrics metrics)