groupAndTuple[0] = output.getField(0);
groupAndTuple[1] = output.getField(1);
} else {
Tuple group = new Tuple();
for (int j = 0; j < output.arity() - 1; j++) {
group.appendField(output.getField(j));
}
groupAndTuple[0] = group;
groupAndTuple[1] = output.getField(output.arity() - 1);
}
return groupAndTuple;