Class PreviousBlockCompressionRatePredicator

java.lang.Object
org.apache.hadoop.hbase.io.hfile.PreviousBlockCompressionRatePredicator
All Implemented Interfaces:
BlockCompressedSizePredicator

This BlockCompressedSizePredicator implementation adjusts the block size limit based on the compression rate of the block contents read so far. For the first block, adjusted size would be zero, so it performs a compression of current block contents and calculate compression rate and adjusted size. For subsequent blocks, decision whether the block should be finished or not will be based on the compression rate calculated for the previous block.