@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); } }
/** 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); } }
// /////////////////////////////////// // Writable // /////////////////////////////////// public void write(DataOutput out) throws IOException { out.writeLong(blockId); out.writeLong(numBytes); out.writeLong(generationStamp); }
///////////////////////////////////// // Writable ///////////////////////////////////// public void write(DataOutput out) throws IOException { out.writeLong(genstamp); }