presto-main/src/main/java/io/prestosql/operator/project/MergePages.java/MergePages/mergePages
class MergePages:    public static WorkProcessor<Page> mergePages(
            Iterable<? extends Type> types,
            long minPageSizeInBytes,
            int minRowCount,
            int maxPageSizeInBytes,
            WorkProcessor<Page> pages,
            AggregatedMemoryContext memoryContext)
    {
        return pages.transform(new MergePagesTransformation(
                types,
                minPageSizeInBytes,
                minRowCount,
                maxPageSizeInBytes,
                memoryContext.newLocalMemoryContext(MergePages.class.getSimpleName())));
    }