public void writeExternal(final ObjectOutput out) throws IOException {
   out.writeByte(0);
   out.writeInt(this._size);
   final SerializationProcedure writeProcedure = new SerializationProcedure(out);
   if (!this.forEachEntry(writeProcedure)) {
     throw writeProcedure.exception;
   }
 }
예제 #2
0
  /** {@inheritDoc} */
  @Override
  public void writeExternal(ObjectOutput out) throws IOException {
    U.writeString(out, jobName);
    U.writeString(out, user);

    out.writeBoolean(hasCombiner);
    out.writeInt(numReduces);

    U.writeStringMap(out, props);
  }