public int getEncodedCompressedSize(Algorithm comprAlgo, Compressor compressor)
    throws IOException {
    byte[] compressedBytes = getEncodedData();
    return getCompressedSize(comprAlgo, compressor, compressedBytes, 0, compressedBytes.length);
  }
Estimate size after second stage of compression (e.g. LZO).
@param comprAlgo  compression algorithm to be used for compression
@param compressor compressor corresponding to the given compression algorithm
@return Size after second stage of compression.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/EncodedDataBlock.java