*/
@Override
public Result getNext(Tuple t) throws ExecException {
Tuple res;
//Create numInputs bags
ReadOnceBag db = null;
db = new ReadOnceBag(this, tupIter, key);
if(reporter!=null) reporter.progress();
//Construct the output tuple by appending
//the key and all the above constructed bags
//and return it.