presto-orc/src/main/java/io/prestosql/orc/stream/ByteArrayOutputStream.java/ByteArrayOutputStream/recordCheckpoint
class ByteArrayOutputStream:    @Override
    public void recordCheckpoint()
    {
        checkState(!closed);
        checkpoints.add(new ByteArrayStreamCheckpoint(buffer.getCheckpoint()));
    }