Exemplo n.º 1
0
 @Override
 public void readData(ObjectDataInput in) throws IOException {
   this.mapName = in.readUTF();
   this.predicate = in.readObject();
   this.iterationType = IterationType.getById(in.readByte());
   this.aggregator = in.readObject();
   this.projection = in.readObject();
 }
Exemplo n.º 2
0
 @Override
 public void writeData(ObjectDataOutput out) throws IOException {
   out.writeUTF(mapName);
   out.writeObject(predicate);
   out.writeByte(iterationType.getId());
   out.writeObject(aggregator);
   out.writeObject(projection);
 }
 @Override
 protected void readInternal(ObjectDataInput in) throws IOException {
   super.readInternal(in);
   predicate = in.readObject();
   iterationType = IterationType.getById(in.readByte());
 }
 @Override
 protected void writeInternal(ObjectDataOutput out) throws IOException {
   super.writeInternal(out);
   out.writeObject(predicate);
   out.writeByte(iterationType.getId());
 }