Tuple lineItem = value2.getField(1, Tuple.class);
/* (partkey, suppkey) from lineItem: */
IntPair newKey = new IntPair(new IntValue(Integer.parseInt(lineItem.getStringValueAt(0))), new IntValue(Integer.parseInt(lineItem.getStringValueAt(1))));
Tuple newValue = new Tuple();
newValue.addAttribute(year.toString()); // year
newValue.addAttribute(lineItem.getStringValueAt(2)); // quantity
newValue.addAttribute(lineItem.getStringValueAt(3)); // price
value1.setField(0, newKey);
value1.setField(1, newValue);