Tuple valTuple = getValueTuple(lr, retTuple);
Tuple keyTuple = mTupleFactory.newTuple(1);
keyTuple.set(0, key.getValueAsPigType());
if (replicate.get(keyTuple) == null) {
replicate.put(keyTuple, new TuplesToSchemaTupleList(1, inputSchemaTupleFactory));
}
replicate.get(keyTuple).add(valTuple);
}
} catch (IOException e) {
throw new ExecException(e);