public static Compressor getCompressor(CompressionCodec codec) {
    Compressor compressor = borrow(COMPRESSOR_POOL, codec.getCompressorType());
    if (compressor == null) {
      compressor = codec.createCompressor();
      LOG.info("Got brand-new compressor");
    } else {
      LOG.debug("Got recycled compressor");
    }
    return compressor;
  }
Get a {@link Compressor} for the given {@link CompressionCodec} from the
pool or a new one.

@param codec
         the <code>CompressionCodec</code> for which to get the
         <code>Compressor</code>
@return <code>Compressor</code> for the given <code>CompressionCodec</code>
        from the pool or a new one
ql/src/java/org/apache/hadoop/hive/ql/io/CodecPool.java