public static void writeVariableIntBytes( int value, DataOutputView keySerializationDateDataOutputView) throws IOException { do { keySerializationDateDataOutputView.writeByte(value); value >>>= 8; } while (value != 0); }
@Override public void serialize(Tuple0 record, DataOutputView target) throws IOException { target.writeByte(42); }
@Override public void write(int b) throws IOException { outputView.writeByte(b); }
@Override public void serialize(Byte record, DataOutputView target) throws IOException { target.writeByte(record); }
@Override public void serialize(GlobalWindow record, DataOutputView target) throws IOException { target.writeByte(0); }
@Override public void write(DataOutputView out) throws IOException { out.writeByte(this.value); }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { source.readByte(); target.writeByte(0); }
@Override public void write(DataOutputView out) throws IOException { out.writeByte(this.value); }
@Override public void write(DataOutputView out) throws IOException { out.writeInt(position); for (int i = 0; i < position; i++) { out.writeByte(data[i]); } }
public static void writeKeyGroup( int keyGroup, int keyGroupPrefixBytes, DataOutputView keySerializationDateDataOutputView) throws IOException { for (int i = keyGroupPrefixBytes; --i >= 0; ) { keySerializationDateDataOutputView.writeByte(extractByteAtPosition(keyGroup, i)); } }
@Override public void write(DataOutputView out) throws IOException { out.writeByte(this.value); }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeByte(source.readByte()); }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeByte(source.readByte()); }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeByte(source.readByte()); }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeByte(source.readByte()); eventIdSerializer.copy(source, target); StringValue.copyString(source, target); }
private void copyStartEvent(DataInputView source, DataOutputView target) throws IOException { byte isNull = source.readByte(); target.writeByte(isNull); if (isNull == 1) { EventId startEventId = eventIdSerializer.deserialize(source); eventIdSerializer.serialize(startEventId, target); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { byte tag = source.readByte(); target.writeByte(tag); if (tag == 1) { oneSerializer.copy(source, target); } else { twoSerializer.copy(source, target); } }