@Override public void writeBytes(byte[] v, int off, int len) throws IOException { if (v == null) { outputStream.writeInt(-1); } else { outputStream.writeInt(len); outputStream.write(v, off, len); } }
/** {@inheritDoc} */ @Override public void write(byte[] b) throws IOException { oos.write(b); }
private void writeObject(java.io.ObjectOutputStream out) throws IOException { out.defaultWriteObject(); if (codec != null) { out.writeByte(codec.getCodecByte()); } else { out.writeByte(-1); } if (userDefinedSchema != null) { byte[] json = userDefinedSchema.toString().getBytes(ConfigConstants.DEFAULT_CHARSET); out.writeInt(json.length); out.write(json); } else { out.writeInt(0); } }
@Override public void writeBytes(byte[] v, int off, int len) throws IOException { if (v == null) { outputStream.writeInt(-1); } else { outputStream.writeInt(len); outputStream.write(v, off, len); } }
/** {@inheritDoc} */ @Override public void write(int b) throws IOException { oos.write(b); }
private void writeObject(ObjectOutputStream out) throws IOException { out.writeInt(data.length); out.write(data); } }
/** {@inheritDoc} */ @Override public void write(byte[] b) throws IOException { oos.write(b); }
private int writeBytes(byte[] data, ObjectOutputStream oos) throws IOException { int len = data.length; oos.writeInt(len); oos.write(data, 0, len); return len; }
/** {@inheritDoc} */ @Override public void write(int b) throws IOException { oos.write(b); }
private void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); byte[] ser = TridentUtils.thriftSerialize(thriftGrouping); oos.writeInt(ser.length); oos.write(ser); }
/** {@inheritDoc} */ @Override public void write(byte[] b, int off, int len) throws IOException { oos.write(b, off, len); }
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); byte[] bytes = this.getBytes(); if (bytes != null) { out.writeInt(bytes.length); out.write(bytes); } else { out.writeInt(0); } }
/** {@inheritDoc} */ @Override public void write(byte[] b, int off, int len) throws IOException { oos.write(b, off, len); }
private void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); byte[] ser = TridentUtils.thriftSerialize(thriftGrouping); oos.writeInt(ser.length); oos.write(ser); }
/** {@inheritDoc} */ public void write(final byte[] buf) throws IOException { oos.write(buf); }
/** {@inheritDoc} */ public void write(final int val) throws IOException { oos.write(val); }
/** {@inheritDoc} */ private void writeObject(ObjectOutputStream out) throws IOException { try { byte[] arr = marshal(str); out.writeInt(arr.length); out.write(arr); out.writeInt(val); } catch (IgniteCheckedException e) { throw new IOException(e); } }
/** {@inheritDoc} */ public void write(final byte[] buf, final int off, final int len) throws IOException { oos.write(buf, off, len); }
/** */ private void writeObject(ObjectOutputStream os) throws IOException{ os.write(10); }