Class UncompressedBlockSizePredicator

java.lang.Object
org.apache.hadoop.hbase.io.hfile.UncompressedBlockSizePredicator
All Implemented Interfaces:
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.
  • Constructor Details

  • Method Details

    • updateLatestBlockSizes

      public void updateLatestBlockSizes(HFileContext context, int uncompressed, int compressed)
      Empty implementation. Does nothing.
      Specified by:
      updateLatestBlockSizes in interface BlockCompressedSizePredicator
      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

      public boolean shouldFinishBlock(int uncompressed)
      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:
      shouldFinishBlock in interface BlockCompressedSizePredicator
      Parameters:
      uncompressed - true if the block should be finished.