@Override public void readFields(DataInput in) throws IOException { t.readFields(in); this.synthetic = in.readBoolean(); this.omittable = in.readBoolean(); }
private Tuple readSchemaTuple(DataInput in, byte type) throws IOException { int id; switch (type) { case (SCHEMA_TUPLE_BYTE_INDEX): id = in.readUnsignedByte(); break; case (SCHEMA_TUPLE_SHORT_INDEX): id = in.readUnsignedShort(); break; case (SCHEMA_TUPLE): id = in.readInt(); break; default: throw new RuntimeException("Invalid type given to readSchemaTuple: " + type); } Tuple st = SchemaTupleFactory.getInstance(id).newTuple(); st.readFields(in); return st; }
@Override public void readFields(DataInput in) throws IOException { t.readFields(in); targetOps = new ArrayList<OperatorKey>(); int size = in.readInt(); for (int i = 0; i < size; i++) { OperatorKey target = new OperatorKey(); // Ideally I should be able to call target.read(in). // Since it doesn't support it yet handling it here int scopeSz = in.readInt(); byte[] buf = new byte[scopeSz]; in.readFully(buf); target.scope = new String(buf); target.id = in.readLong(); targetOps.add(target); } }
c.tuple.readFields(in); mMergeQ.add(c); } catch (EOFException eof) {
@Override public void readFields(DataInput in) throws IOException { Tuple t = tf.newTuple(realTuple.size()); t.readFields(in); reference(t); }
do { try { c.tuple.readFields(in);
Tuple t2 = mFact.newTuple(); try { t1.readFields(new DataInputStream( new ByteArrayInputStream(bb1.array(), s1, bb1.limit()))); t2.readFields(new DataInputStream( new ByteArrayInputStream(bb2.array(), s2, bb2.limit()))); } catch (IOException ioe) {
Tuple t1 = mFact.newTuple(); Tuple t2 = mFact.newTuple(); t1.readFields(new DataInputStream(new ByteArrayInputStream(bb1.array(), s1, bb1.limit()))); t2.readFields(new DataInputStream(new ByteArrayInputStream(bb2.array(), s2, bb2.limit())));