presto-rcfile/src/main/java/io/prestosql/rcfile/HadoopDecompressor.java/HadoopDecompressor/decompress
class HadoopDecompressor:    @Override
    public void decompress(Slice compressed, Slice uncompressed)
            throws RcFileCorruptionException
    {
        checkState(!destroyed, "Codec has been destroyed");
        decompressor.reset();
        try (CompressionInputStream decompressorStream = codec.createInputStream(compressed.getInput(), decompressor)) {
            uncompressed.setBytes(0, decompressorStream, uncompressed.length());
        }
        catch (IndexOutOfBoundsException | IOException e) {
            throw new RcFileCorruptionException(e, "Compressed stream is truncated");
        }
    }