presto-orc/src/main/java/io/prestosql/orc/OrcOutputBuffer.java/OrcOutputBuffer/estimateOutputDataSize
class OrcOutputBuffer:    public long estimateOutputDataSize()
    {
        return compressedOutputStream.size() + bufferPosition;
    }