if(redRes.returnStatus==POStatus.STATUS_OK){
Tuple tuple = (Tuple)redRes.result;
Byte index = (Byte)tuple.get(0);
PigNullableWritable outKey =
HDataType.getWritableComparableTypes(tuple.get(1), this.keyType);
NullableTuple val =
new NullableTuple((Tuple)tuple.get(2));
// Both the key and the value need the index. The key needs it so
// that it can be sorted on the index in addition to the key
// value. The value needs it so that POPackage can properly
// assign the tuple to its slot in the projection.
outKey.setIndex(index);
val.setIndex(index);
oc.collect(outKey, val);
continue;
}
if(redRes.returnStatus==POStatus.STATUS_EOP)