int fillerColumn,
int runs,
int rows,
boolean report)
{
Operator setup =
project_DefaultTest(
limit_Default(
groupScan_Default(group),
rows),
tRowType,
Arrays.asList(ExpressionGenerators.field(tRowType, 0),
ExpressionGenerators.field(tRowType, 1),
ExpressionGenerators.field(tRowType, 2),
ExpressionGenerators.field(tRowType, 3),
ExpressionGenerators.field(tRowType, fillerColumn)));
RowType inputRowType = setup.rowType();
int sortComplexity = 0;
Ordering ordering = ordering();
for (int f = 0; f < sortFields; f++) {
boolean ascending = (orderingMask & (1 << f)) != 0;
ordering.append(ExpressionGenerators.field(inputRowType, f), ascending);
boolean previousAscending = (orderingMask & (1 << (f - 1))) != 0;
if (f > 0 && ascending != previousAscending) {
sortComplexity++;
}
}
Operator sort =
sort_General(
setup,
inputRowType,
ordering,
SortOption.PRESERVE_DUPLICATES);