Package org.apache.hadoop.hbase.io.hfile
Class UncompressedBlockSizePredicator
java.lang.Object
org.apache.hadoop.hbase.io.hfile.UncompressedBlockSizePredicator
- All Implemented Interfaces:
BlockCompressedSizePredicator
@Private
public class UncompressedBlockSizePredicator
extends Object
implements BlockCompressedSizePredicator
This BlockCompressedSizePredicator implementation doesn't actually performs any predicate and
simply returns true on
shouldFinishBlock. This is the default implementation
if hbase.block.compressed.size.predicator property is not defined.-
Field Summary
Fields inherited from interface org.apache.hadoop.hbase.io.hfile.BlockCompressedSizePredicator
BLOCK_COMPRESSED_SIZE_PREDICATOR, MAX_BLOCK_SIZE_UNCOMPRESSED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldFinishBlock(int uncompressed) Dummy implementation that always returns true.voidupdateLatestBlockSizes(HFileContext context, int uncompressed, int compressed) Empty implementation.
-
Constructor Details
-
UncompressedBlockSizePredicator
public UncompressedBlockSizePredicator()
-
-
Method Details
-
updateLatestBlockSizes
Empty implementation. Does nothing.- Specified by:
updateLatestBlockSizesin interfaceBlockCompressedSizePredicator- Parameters:
uncompressed- the uncompressed size of last block written.compressed- the compressed size of last block written.context- the HFileContext containg the configured max block size.
-
shouldFinishBlock
Dummy implementation that always returns true. This means, we will be only considering the block uncompressed size for deciding when to finish a block.- Specified by:
shouldFinishBlockin interfaceBlockCompressedSizePredicator- Parameters:
uncompressed- true if the block should be finished.
-