TopNOperatorFactory factory = new TopNOperatorFactory(
0,
5,
ImmutableList.of(singleColumn(FIXED_INT_64, 0), singleColumn(DOUBLE, 1), singleColumn(FIXED_INT_64, 2)),
Ordering.from(new FieldOrderedTupleComparator(ImmutableList.of(0), ImmutableList.of(SortOrder.DESC_NULLS_LAST))),
Optional.of(input.get(0).getChannelCount() - 1),
false);
Operator operator = factory.createOperator(driverContext);