Package org.apache.iceberg.flink.sink
Class IcebergCommittableSerializer
java.lang.Object
org.apache.iceberg.flink.sink.IcebergCommittableSerializer
- All Implemented Interfaces:
- org.apache.flink.core.io.SimpleVersionedSerializer<org.apache.iceberg.flink.sink.IcebergCommittable>,- org.apache.flink.core.io.Versioned
public class IcebergCommittableSerializer
extends Object
implements org.apache.flink.core.io.SimpleVersionedSerializer<org.apache.iceberg.flink.sink.IcebergCommittable>
This serializer is used for serializing the 
IcebergCommittable objects between the Writer
 and the Aggregator operator and between the Aggregator and the Committer as well.
 In both cases only the respective part is serialized.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.iceberg.flink.sink.IcebergCommittabledeserialize(int version, byte[] serialized) intbyte[]serialize(org.apache.iceberg.flink.sink.IcebergCommittable committable) 
- 
Constructor Details- 
IcebergCommittableSerializerpublic IcebergCommittableSerializer()
 
- 
- 
Method Details- 
getVersionpublic int getVersion()- Specified by:
- getVersionin interface- org.apache.flink.core.io.SimpleVersionedSerializer<org.apache.iceberg.flink.sink.IcebergCommittable>
- Specified by:
- getVersionin interface- org.apache.flink.core.io.Versioned
 
- 
serializepublic byte[] serialize(org.apache.iceberg.flink.sink.IcebergCommittable committable) throws IOException - Specified by:
- serializein interface- org.apache.flink.core.io.SimpleVersionedSerializer<org.apache.iceberg.flink.sink.IcebergCommittable>
- Throws:
- IOException
 
- 
deserializepublic org.apache.iceberg.flink.sink.IcebergCommittable deserialize(int version, byte[] serialized) throws IOException - Specified by:
- deserializein interface- org.apache.flink.core.io.SimpleVersionedSerializer<org.apache.iceberg.flink.sink.IcebergCommittable>
- Throws:
- IOException
 
 
-