@Override public void write(DataOutputView out) throws IOException { out.writeBoolean(this.value); }
@Override public void serialize(Boolean record, DataOutputView target) throws IOException { target.writeBoolean(record); }
@Override public void write(DataOutputView out) throws IOException { out.writeBoolean(false); }
@Override public void serialize(T record, DataOutputView target) throws IOException { if (record == null) { target.writeBoolean(true); target.write(padding); } else { target.writeBoolean(false); originalSerializer.serialize(record, target); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeBoolean(source.readBoolean()); }
@Override public void serialize(BufferEntry<T> record, DataOutputView target) throws IOException { target.writeBoolean(record.hasBeenJoined); elementSerializer.serialize(record.element, target); }
@Override public void serialize(boolean[] record, DataOutputView target) throws IOException { if (record == null) { throw new IllegalArgumentException("The record must not be null."); } final int len = record.length; target.writeInt(len); for (int i = 0; i < len; i++) { target.writeBoolean(record[i]); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { source.readBoolean(); target.writeBoolean(false); } }
@Override public void serialize(C[] value, DataOutputView target) throws IOException { target.writeInt(value.length); for (int i = 0; i < value.length; i++) { C val = value[i]; if (val == null) { target.writeBoolean(false); } else { target.writeBoolean(true); componentSerializer.serialize(val, target); } } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeBoolean(source.readBoolean()); }
@Override public void write(DataOutputView out) throws IOException { out.writeBoolean(this.value); }
@Override public void serialize( FlinkKafkaProducer.KafkaTransactionState record, DataOutputView target) throws IOException { if (record.transactionalId == null) { target.writeBoolean(false); } else { target.writeBoolean(true); target.writeUTF(record.transactionalId); } target.writeLong(record.producerId); target.writeShort(record.epoch); }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { target.writeBoolean(source.readBoolean()); elementSerializer.copy(source, target); }
@Override public void serialize(Either<L, R> record, DataOutputView target) throws IOException { if (record.isLeft()) { target.writeBoolean(true); leftSerializer.serialize(record.left(), target); } else { target.writeBoolean(false); rightSerializer.serialize(record.right(), target); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { boolean isNull = source.readBoolean(); target.writeBoolean(isNull); if (isNull) { target.write(padding); } else { originalSerializer.copy(source, target); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { boolean isLeft = source.readBoolean(); target.writeBoolean(isLeft); if (isLeft) { leftSerializer.copy(source, target); } else { rightSerializer.copy(source, target); } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { int len = source.readInt(); target.writeInt(len); for (int i = 0; i < len; i++) { boolean isNonNull = source.readBoolean(); target.writeBoolean(isNonNull); if (isNonNull) { componentSerializer.copy(source, target); } } }
@Override public void copy(DataInputView source, DataOutputView target) throws IOException { final int size = source.readInt(); target.writeInt(size); for (int i = 0; i < size; ++i) { keySerializer.copy(source, target); boolean isNull = source.readBoolean(); target.writeBoolean(isNull); if (!isNull) { valueSerializer.copy(source, target); } } }
@Override public void copy( DataInputView source, DataOutputView target) throws IOException { boolean hasTransactionalId = source.readBoolean(); target.writeBoolean(hasTransactionalId); if (hasTransactionalId) { target.writeUTF(source.readUTF()); } target.writeLong(source.readLong()); target.writeShort(source.readShort()); }
@Override public void copy( DataInputView source, DataOutputView target) throws IOException { boolean hasTransactionalId = source.readBoolean(); target.writeBoolean(hasTransactionalId); if (hasTransactionalId) { target.writeUTF(source.readUTF()); } target.writeLong(source.readLong()); target.writeShort(source.readShort()); }