presto-spi/src/main/java/io/prestosql/spi/connector/RecordPageSource.java/RecordPageSource/RecordPageSource
class RecordPageSource:    public RecordPageSource(List<Type> types, RecordCursor cursor)
    {
        this.cursor = requireNonNull(cursor, "cursor is null");
        this.types = unmodifiableList(new ArrayList<>(requireNonNull(types, "types is null")));
        this.pageBuilder = new PageBuilder(this.types);
    }