Session session = new Session("user", "source", "catalog", "schema", "address", "agent");
DriverContext driverContext = new TaskContext(new TaskId("query", "stage", "task"), executor, session, new DataSize(10, Unit.BYTE))
.addPipelineContext(true, true)
.addDriverContext();
InMemoryOrderByOperatorFactory operatorFactory = new InMemoryOrderByOperatorFactory(
0,
ImmutableList.of(SINGLE_LONG, SINGLE_DOUBLE),
0,
new int[] {1},
10);
Operator operator = operatorFactory.createOperator(driverContext);
toPages(operator, input);
}