@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 void updateLatestBlockSizes(HFileContext context, int uncompressed, int compressed)
updateLatestBlockSizes in interface BlockCompressedSizePredicatoruncompressed - 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 BlockCompressedSizePredicatoruncompressed - true if the block should be finished.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.