Tuple tuple;
List<String> binNames = getBinNames((ListIterator)iterationInputs[1]);
List<Double> aggregates = getAggregates((TupleListIterator)iterationInputs[2]);
mOutput.write(ControlBlock.LIST_BEGIN);
mOutput.write(prepareMetadata(dataTuples));
while((tuple = (Tuple)dataTuples.nextValue()) != null) {
ArrayList<String> list = new ArrayList<String>();
list.add(getBinName(tuple, binNames, aggregates));
mOutput.write(new SimpleTuple(list));
}
mOutput.write(ControlBlock.LIST_END);