BlockIterable totalPrice = getBlockIterable("orders", "totalprice", BlocksFileEncoding.RAW);
BlockIterable clerk = getBlockIterable("orders", "clerk", BlocksFileEncoding.RAW);
AlignmentOperatorFactory alignmentOperator = new AlignmentOperatorFactory(0, concat(nCopies(100, totalPrice)), concat(nCopies(100, clerk)));
LimitOperatorFactory limitOperator = new LimitOperatorFactory(1, alignmentOperator.getTupleInfos(), ROWS);
InMemoryOrderByOperatorFactory orderByOperator = new InMemoryOrderByOperatorFactory(
2,
limitOperator.getTupleInfos(),
0,
new int[] {1},
ROWS);
return ImmutableList.of(alignmentOperator, limitOperator, orderByOperator);