@Override public void write(DataOutputView out) throws IOException { out.writeUTF(this.prefix); this.backingConfig.write(out); }
@Override public void write(DataOutputView out) throws IOException { super.write(out); out.writeUTF(serializationFormatIdentifier); }
@Override public void serialize( FlinkKafkaProducer.KafkaTransactionContext record, DataOutputView target) throws IOException { int numIds = record.transactionalIds.size(); target.writeInt(numIds); for (String id : record.transactionalIds) { target.writeUTF(id); } }
@Override public void write(DataOutputView out) throws IOException { super.write(out); // write only the classname to avoid Java serialization out.writeUTF(typeClass.getName()); }
@Override public void serialize( KafkaTransactionContext record, DataOutputView target) throws IOException { int numIds = record.transactionalIds.size(); target.writeInt(numIds); for (String id : record.transactionalIds) { target.writeUTF(id); } }
@Override protected void writeOuterSnapshot(DataOutputView out) throws IOException { out.writeUTF(outerConfiguration); }
@Override public void write(DataOutputView out) throws IOException { out.writeUTF(this.value); }
@Override public void writeSnapshot(DataOutputView out) throws IOException { checkState(componentClass != null && nestedSnapshot != null); out.writeUTF(componentClass.getName()); nestedSnapshot.writeNestedSerializerSnapshots(out); }
@Override public void write(DataOutputView out) throws IOException { super.write(out); out.writeInt(enumConstants.size()); for (String enumConstant : enumConstants) { out.writeUTF(enumConstant); } }
/** * Writes the given snapshot to the out stream. One should always use this method to write * snapshots out, rather than directly calling {@link #writeSnapshot(DataOutputView)}. * * <p>The snapshot written with this method can be read via {@link #readVersionedSnapshot(DataInputView, ClassLoader)}. */ static void writeVersionedSnapshot(DataOutputView out, TypeSerializerSnapshot<?> snapshot) throws IOException { out.writeUTF(snapshot.getClass().getName()); out.writeInt(snapshot.getCurrentVersion()); snapshot.writeSnapshot(out); }
@Override public void write(DataOutputView out) throws IOException { super.write(out); out.writeInt(kryoRegistrations.size()); for (Map.Entry<String, KryoRegistration> kryoRegistrationEntry : kryoRegistrations.entrySet()) { out.writeUTF(kryoRegistrationEntry.getKey()); new KryoRegistrationSerializationProxy<>(kryoRegistrationEntry.getValue()).write(out); } }
@Override public void copy( DataInputView source, DataOutputView target) throws IOException { int numIds = source.readInt(); target.writeInt(numIds); for (int i = 0; i < numIds; i++) { target.writeUTF(source.readUTF()); } }
@Override public void write(DataOutputView out) throws IOException { super.write(out); out.writeUTF(data); }
@Override public void copy( DataInputView source, DataOutputView target) throws IOException { int numIds = source.readInt(); target.writeInt(numIds); for (int i = 0; i < numIds; i++) { target.writeUTF(source.readUTF()); } }
@Override public void write(DataOutputView out) throws IOException { super.write(out); out.writeUTF(data); }
@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 write(DataOutputView out) throws IOException { super.write(out); out.writeInt(val); out.writeUTF(msg); }
@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()); }