presto-orc/src/main/java/io/prestosql/orc/stream/LongOutputStreamV1.java/LongOutputStreamV1/flushSequence
class LongOutputStreamV1:    private void flushSequence()
    {
        if (size == 0) {
            return;
        }

        if (runCount >= MIN_REPEAT_SIZE) {
            flushRleSequence(runCount);
        }
        else {
            flushLiteralSequence(size);
        }

        size = 0;
        runCount = 0;
        lastValue = 0;
        lastDelta = UNMATCHABLE_DELTA_VALUE;
    }