presto-orc/src/main/java/io/prestosql/orc/stream/CompressedOrcChunkLoader.java/CompressedOrcChunkLoader/createOutputBuffer
class CompressedOrcChunkLoader:    private OutputBuffer createOutputBuffer()
    {
        return new OutputBuffer()
        {
            @Override
            public byte[] initialize(int size)
            {
                if (decompressorOutputBuffer == null || size > decompressorOutputBuffer.length) {
                    decompressorOutputBuffer = new byte[size];
                    decompressionBufferMemoryUsage.setBytes(decompressorOutputBuffer.length);
                }
                return decompressorOutputBuffer;
            }

            @Override
            public byte[] grow(int size)
            {
                if (size > decompressorOutputBuffer.length) {
                    decompressorOutputBuffer = Arrays.copyOfRange(decompressorOutputBuffer, 0, size);
                    decompressionBufferMemoryUsage.setBytes(decompressorOutputBuffer.length);
                }
                return decompressorOutputBuffer;
            }
        };
    }