@Override public void write(DataOutput out) throws IOException { byte[] data = _is.writeFields(); out.writeUTF(Plugins.getLoadedLibraries()); out.writeUTF(_is.getClassName()); // System.out.printf("Java write data length: %d\n", data.length); out.writeInt(data.length); out.write(data); }
@Override public void readFields(DataInput in) throws IOException { String libDeps = in.readUTF(); Plugins.loadAllLibraries(libDeps); String className = in.readUTF(); _is = pp.InputSplit.create(className); int length = in.readInt(); byte[] data = new byte[length]; // System.out.printf("Java read data length: %d\n", length); in.readFully(data); _is.readFields(data); }
public long getStart() { return _is.getStart(); }
@Override public String[] getLocations() throws IOException { return _is.getLocations().split(";"); }
@Override public long getLength() throws IOException { return _is.getLength(); }