Exemplo n.º 1
0
 @SuppressWarnings("deprecation")
 public void write(DataOutput out) throws IOException {
   out.writeLong(rpcVersion);
   UTF8.writeString(out, declaringClassProtocolName);
   UTF8.writeString(out, methodName);
   out.writeLong(clientVersion);
   out.writeInt(clientMethodsHash);
   out.writeInt(parameterClasses.length);
   for (int i = 0; i < parameterClasses.length; i++) {
     ObjectWritable.writeObject(out, parameters[i], parameterClasses[i], conf, true);
   }
 }
 ///////////////////////////////////////////
 // Writable
 ///////////////////////////////////////////
 public void write(DataOutput out) throws IOException {
   blockToken.write(out);
   out.writeBoolean(corrupt);
   out.writeLong(offset);
   b.write(out);
   out.writeInt(locs.length);
   for (int i = 0; i < locs.length; i++) {
     locs[i].write(out);
   }
 }
Exemplo n.º 3
0
 /** Implement write of Writable */
 public void write(DataOutput out) throws IOException {
   out.writeLong(offset);
   out.writeLong(length);
   out.writeInt(names.length);
   for (int i = 0; i < names.length; i++) {
     Text name = new Text(names[i]);
     name.write(out);
   }
   out.writeInt(hosts.length);
   for (int i = 0; i < hosts.length; i++) {
     Text host = new Text(hosts[i]);
     host.write(out);
   }
   out.writeInt(topologyPaths.length);
   for (int i = 0; i < topologyPaths.length; i++) {
     Text host = new Text(topologyPaths[i]);
     host.write(out);
   }
 }
Exemplo n.º 4
0
 // ///////////////////////////////////
 // Writable
 // ///////////////////////////////////
 public void write(DataOutput out) throws IOException {
   out.writeLong(blockId);
   out.writeLong(numBytes);
   out.writeLong(generationStamp);
 }
Exemplo n.º 5
0
 /////////////////////////////////////
 // Writable
 /////////////////////////////////////
 public void write(DataOutput out) throws IOException {
   out.writeLong(genstamp);
 }