presto-orc/src/main/java/io/prestosql/orc/stream/PresentOutputStream.java/PresentOutputStream/reset
class PresentOutputStream:    public void reset()
    {
        closed = false;
        booleanOutputStream = null;
        buffer.reset();
        groupsCounts.clear();
        currentGroupCount = 0;
    }