public ByteBuffDecompressor getByteBuffDecompressor() {
      CompressionCodec codec = getCodec(conf);
      if (codec instanceof ByteBuffDecompressionCodec) {
        ByteBuffDecompressor decompressor =
          CodecPool.getByteBuffDecompressor((ByteBuffDecompressionCodec) codec);
        if (LOG.isTraceEnabled()) {
          LOG.trace("Retrieved decompressor {} from pool.", decompressor);
        }
        return decompressor;
      } else {
        throw new IllegalStateException("Codec " + codec + " does not support block decompression");
      }
    }
Be sure to call {@link #supportsByteBuffDecompression()} before calling this method.
@throws IllegalStateException if the codec does not support block decompression
hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/Compression.java