@Override public void addColsToTuple(DataInput in, Tuple t) throws IOException { byte type = in.readByte(); int sz = getTupleSize(in, type); for (int i = 0; i < sz; i++) { t.append(readDatum(in)); } }
public static Tuple readGenericTuple(DataInput in, byte type) throws IOException { int sz = pigSerializer.getTupleSize(in, type); Tuple t = mTupleFactory.newTuple(sz); for (int i = 0; i < sz; i++) { t.set(i, pigSerializer.readDatum(in)); } return t; }