protected synchronized Object initialValue() { return new BinaryRecordOutput(); } };
/** * Get a thread-local record output for the supplied DataOutput. * @param out data output stream * @return binary record output corresponding to the supplied DataOutput. */ public static BinaryRecordOutput get(DataOutput out) { BinaryRecordOutput bout = (BinaryRecordOutput) bOut.get(); bout.setDataOutput(out); return bout; }
@Override public void startMap(TreeMap v, String tag) throws IOException { writeInt(v.size(), tag); }
@Override public void write(final DataOutput out) throws java.io.IOException { BinaryRecordOutput bout = BinaryRecordOutput.get(out); this.serialize(bout); }
@Override public void write(final DataOutput out) throws java.io.IOException { BinaryRecordOutput bout = BinaryRecordOutput.get(out); this.serialize(bout); }
@Override protected BinaryRecordOutput initialValue() { return new BinaryRecordOutput(); } };
@Override public void startMap(TreeMap v, String tag) throws IOException { writeInt(v.size(), tag); }
/** * Get a thread-local record output for the supplied DataOutput. * @param out data output stream * @return binary record output corresponding to the supplied DataOutput. */ public static BinaryRecordOutput get(DataOutput out) { BinaryRecordOutput bout = (BinaryRecordOutput) bOut.get(); bout.setDataOutput(out); return bout; }
@Override public void write(final DataOutput out) throws java.io.IOException { BinaryRecordOutput bout = BinaryRecordOutput.get(out); this.serialize(bout); }
@Override protected BinaryRecordOutput initialValue() { return new BinaryRecordOutput(); } };
@Override public void startMap(TreeMap v, String tag) throws IOException { writeInt(v.size(), tag); }
/** * Get a thread-local record output for the supplied DataOutput. * @param out data output stream * @return binary record output corresponding to the supplied DataOutput. */ public static BinaryRecordOutput get(DataOutput out) { BinaryRecordOutput bout = B_OUT.get(); bout.setDataOutput(out); return bout; }
@Override public void write(final DataOutput out) throws java.io.IOException { BinaryRecordOutput bout = BinaryRecordOutput.get(out); this.serialize(bout); }
@Override protected synchronized Object initialValue() { return new BinaryRecordOutput(); } };
public void startVector(ArrayList v, String tag) throws IOException { writeInt(v.size(), tag); }
/** * Get a thread-local record output for the supplied DataOutput. * @param out data output stream * @return binary record output corresponding to the supplied DataOutput. */ public static BinaryRecordOutput get(DataOutput out) { BinaryRecordOutput bout = (BinaryRecordOutput) bOut.get(); bout.setDataOutput(out); return bout; }
@Override public void write(final DataOutput out) throws java.io.IOException { BinaryRecordOutput bout = BinaryRecordOutput.get(out); this.serialize(bout); }
@Override protected synchronized Object initialValue() { return new BinaryRecordOutput(); } };
public void startMap(TreeMap v, String tag) throws IOException { writeInt(v.size(), tag); }
/** * Get a thread-local record output for the supplied DataOutput. * @param out data output stream * @return binary record output corresponding to the supplied DataOutput. */ public static BinaryRecordOutput get(DataOutput out) { BinaryRecordOutput bout = (BinaryRecordOutput) bOut.get(); bout.setDataOutput(out); return bout; }