@Override public void write(final DataOutput out) throws IOException { super.write(out); // Write out the path of the input file if (this.path == null) { out.writeBoolean(false); } else { out.writeBoolean(true); this.path.write(out); } }
@Override public void write(final DataOutput out) throws IOException { super.write(out); // Write out the path of the input file if (this.path == null) { out.writeBoolean(false); } else { out.writeBoolean(true); this.path.write(out); } }
@Override public void write(final DataOutput out) throws IOException { super.write(out); // Write out the path of the input file if (this.path == null) { out.writeBoolean(false); } else { out.writeBoolean(true); this.path.write(out); } }
@Override public void write(final DataOutput out) throws IOException { super.write(out); // Write out the path of the input file if (this.path == null) { out.writeBoolean(false); } else { out.writeBoolean(true); this.path.write(out); } }
@Override public void write(final DataOutput out) throws IOException { // write partition number out.writeInt(this.partitionNumber); // write file if (this.file != null) { out.writeBoolean(true); this.file.write(out); } else { out.writeBoolean(false); } // write start and length out.writeLong(this.start); out.writeLong(this.length); // write hosts if (this.hosts == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeInt(this.hosts.length); for (int i = 0; i < this.hosts.length; i++) { StringRecord.writeString(out, this.hosts[i]); } } }
@Override public void write(final DataOutput out) throws IOException { // write partition number out.writeInt(this.partitionNumber); // write file if (this.file != null) { out.writeBoolean(true); this.file.write(out); } else { out.writeBoolean(false); } // write start and length out.writeLong(this.start); out.writeLong(this.length); // write hosts if (this.hosts == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeInt(this.hosts.length); for (int i = 0; i < this.hosts.length; i++) { StringRecord.writeString(out, this.hosts[i]); } } }
jar.write(out);