public void write(DataOutput out) throws IOException { out.write(UNION_TYPE); out.writeUTF(name); out.writeInt(unionTypes.size()); for (InferredType it : unionTypes) { it.write(out); } }
public void write(DataOutput out) throws IOException { out.write(STRUCT_TYPE); out.writeUTF(name); out.writeInt(structTypes.size()); for (InferredType it : structTypes) { it.write(out); } }
/////////////////////////////////////////// // 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); } }
/** * {@inheritDoc} * * @see Writable#write(DataOutput) */ public void write(DataOutput out) throws IOException { BSONEncoder enc = new BSONEncoder(); BasicOutputBuffer buf = new BasicOutputBuffer(); enc.set(buf); enc.putObject(_doc); enc.done(); out.writeInt(buf.size()); // For better performance we can copy BasicOutputBuffer.pipe(OutputStream) // to have a method signature that works with DataOutput out.write(buf.toByteArray()); }
@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); } }
public void write(DataOutput out) throws IOException { out.write(BASE_TYPE); out.writeUTF(name); out.writeInt(sampleStrs.size()); for (int i = 0; i < sampleStrs.size(); i++) { UTF8.writeString(out, sampleStrs.get(i)); } out.writeInt(tokenClassIdentifier); out.writeBoolean(tokenParameter != null); if (tokenParameter != null) { UTF8.writeString(out, tokenParameter); } }
public void write(DataOutput out) throws IOException { ObjectWritable.writeStringCached(out, methodName); out.writeInt(parameterClasses.length); for (int i = 0; i < parameterClasses.length; i++) { ObjectWritable.writeObject(out, parameters[i], parameterClasses[i], conf); } }
public void write(DataOutput out) throws IOException { out.writeBoolean(isNode); if (node != null) { node.write(out); } else { contribution.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); } }
public void write(DataOutput out) throws IOException { out.writeUTF(leftBigram.toString()); out.writeUTF(rightBigram.toString()); }
// /////////////////////////////////// // 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.writeInt(this.action); }
///////////////////////////////////// // Writable ///////////////////////////////////// public void write(DataOutput out) throws IOException { out.writeLong(genstamp); }
public void write(DataOutput out) throws IOException { out.write(ARRAY_TYPE); out.writeUTF(name); bodyType.write(out); }