OperatorFactory tableScanOperator = createTableScanOperator(0, "orders", "totalprice");
TopNOperatorFactory topNOperator = new TopNOperatorFactory(
1,
100,
ImmutableList.of(singleColumn(Type.DOUBLE, 0)),
Ordering.from(new FieldOrderedTupleComparator(ImmutableList.of(0), ImmutableList.of(SortOrder.DESC_NULLS_LAST))),
Optional.<Integer>absent(),
false);
return ImmutableList.of(tableScanOperator, topNOperator);
}