presto-orc/src/main/java/io/prestosql/orc/stream/ByteOutputStream.java/ByteOutputStream/reset
class ByteOutputStream:    @Override
    public void reset()
    {
        size = 0;
        runCount = 0;
        lastValue = UNMATCHABLE_VALUE;

        closed = false;
        buffer.reset();
        checkpoints.clear();
    }