presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/util/PageBuffer.java/PageBuffer/PageBuffer
class PageBuffer:    public PageBuffer(
            long maxMemoryBytes,
            StoragePageSink storagePageSink,
            List<Type> columnTypes,
            List<Integer> sortFields,
            List<SortOrder> sortOrders,
            PageSorter pageSorter)
    {
        checkArgument(maxMemoryBytes > 0, "maxMemoryBytes must be positive");
        this.maxMemoryBytes = maxMemoryBytes;
        this.columnTypes = requireNonNull(columnTypes, "columnTypes is null");
        this.sortFields = ImmutableList.copyOf(requireNonNull(sortFields, "sortFields is null"));
        this.sortOrders = ImmutableList.copyOf(requireNonNull(sortOrders, "sortOrders is null"));
        this.pageSorter = requireNonNull(pageSorter, "pageSorter is null");
        this.storagePageSink = requireNonNull(storagePageSink, "storagePageSink is null");
    }