presto-rcfile/src/main/java/io/prestosql/rcfile/RcFileWriter.java/RcFileWriter/write
class RcFileWriter:    public void write(Page page)
            throws IOException
    {
        if (page.getPositionCount() == 0) {
            return;
        }
        List<Page> pages = splitPage(page, targetMaxRowGroupSize);
        for (Page splitPage : pages) {
            bufferPage(splitPage);
        }
    }