presto-rcfile/src/main/java/io/prestosql/rcfile/RcFileCompressor.java/RcFileCompressor/createRecycledCompressedSliceOutput
class RcFileCompressor:        public CompressedSliceOutput createRecycledCompressedSliceOutput()
        {
            checkState(closed, "Stream has not been closed");
            checkState(!destroyed, "Stream has been destroyed");
            destroyed = true;
            return resetFactory.get();
        }