Package | Description |
---|---|
org.apache.hadoop.hbase.io.encoding | |
org.apache.hadoop.hbase.io.hfile |
Provides implementations of
HFile and HFile
BlockCache . |
org.apache.hadoop.hbase.util |
Modifier and Type | Method and Description |
---|---|
BlockType |
HFileBlockEncodingContext.getBlockType() |
BlockType |
HFileBlockDefaultEncodingContext.getBlockType() |
Modifier and Type | Method and Description |
---|---|
void |
HFileBlockEncodingContext.postEncoding(BlockType blockType)
Do any action that needs to be performed after the encoding.
|
void |
HFileBlockDefaultEncodingContext.postEncoding(BlockType blockType) |
Modifier and Type | Method and Description |
---|---|
BlockType |
Cacheable.getBlockType() |
BlockType |
CachedBlock.getBlockType() |
BlockType |
HFileBlock.getBlockType() |
BlockType |
BlockCacheKey.getBlockType() |
BlockType |
InlineBlockWriter.getInlineBlockType()
The type of blocks this block writer produces.
|
BlockType |
HFileBlockIndex.BlockIndexWriter.getInlineBlockType() |
static BlockType |
BlockType.parse(byte[] buf,
int offset,
int length) |
static BlockType |
BlockType.read(ByteBuffer buf) |
static BlockType |
BlockType.read(DataInputStream in) |
static BlockType |
BlockType.valueOf(String name)
Returns 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.
|
Modifier and Type | Method and Description |
---|---|
void |
NoOpDataBlockEncoder.endBlockEncoding(HFileBlockEncodingContext encodingCtx,
DataOutputStream out,
byte[] uncompressedBytesWithHeader,
BlockType blockType) |
void |
HFileDataBlockEncoderImpl.endBlockEncoding(HFileBlockEncodingContext encodingCtx,
DataOutputStream out,
byte[] uncompressedBytesWithHeader,
BlockType blockType) |
void |
HFileDataBlockEncoder.endBlockEncoding(HFileBlockEncodingContext encodingCtx,
DataOutputStream out,
byte[] uncompressedBytesWithHeader,
BlockType blockType)
Ends encoding for a block of KeyValues.
|
void |
CacheStats.hit(boolean caching,
boolean primary,
BlockType type) |
void |
CacheStats.miss(boolean caching,
boolean primary,
BlockType type) |
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 |
HFileReaderV2.readBlock(long dataBlockOffset,
long onDiskBlockSize,
boolean cacheBlock,
boolean pread,
boolean isCompaction,
boolean updateCacheMetrics,
BlockType expectedBlockType,
DataBlockEncoding expectedDataBlockEncoding) |
boolean |
CacheConfig.shouldLockOnCacheMiss(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(BlockType blockType)
Return true if we may find this type of block in block cache.
|
Constructor and Description |
---|
BlockCacheKey(String hfileName,
long offset,
boolean isPrimaryReplica,
BlockType blockType) |
HFileBlock(BlockType blockType,
int onDiskSizeWithoutHeader,
int uncompressedSizeWithoutHeader,
long prevBlockOffset,
ByteBuffer b,
boolean fillHeader,
long offset,
int nextBlockOnDiskSize,
int onDiskDataSizeWithHeader,
HFileContext fileContext)
Creates a new
HFile block from the given fields. |
Modifier and Type | Method and Description |
---|---|
BlockType |
CompoundBloomFilterWriter.getInlineBlockType() |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.