@InterfaceAudience.Private public class UncompressedBlockSizePredicator extends Object implements BlockCompressedSizePredicator
shouldFinishBlock
. This is the default implementation
if hbase.block.compressed.size.predicator property is not defined.BLOCK_COMPRESSED_SIZE_PREDICATOR, MAX_BLOCK_SIZE_UNCOMPRESSED
Constructor and Description |
---|
UncompressedBlockSizePredicator() |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldFinishBlock(int uncompressed)
Dummy implementation that always returns true.
|
void |
updateLatestBlockSizes(HFileContext context,
int uncompressed,
int compressed)
Empty implementation.
|
public UncompressedBlockSizePredicator()
public void updateLatestBlockSizes(HFileContext context, int uncompressed, int compressed)
updateLatestBlockSizes
in interface BlockCompressedSizePredicator
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.public boolean shouldFinishBlock(int uncompressed)
shouldFinishBlock
in interface BlockCompressedSizePredicator
uncompressed
- true if the block should be finished.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.