Class IcebergSourceSplitSerializer
- java.lang.Object
-
- org.apache.iceberg.flink.source.split.IcebergSourceSplitSerializer
-
- All Implemented Interfaces:
org.apache.flink.core.io.SimpleVersionedSerializer<IcebergSourceSplit>
,org.apache.flink.core.io.Versioned
@Internal public class IcebergSourceSplitSerializer extends java.lang.Object implements org.apache.flink.core.io.SimpleVersionedSerializer<IcebergSourceSplit>
TODO: use Java serialization for now. Will switch to more stable serializer from issue-1698.
-
-
Field Summary
Fields Modifier and Type Field Description static IcebergSourceSplitSerializer
INSTANCE
-
Constructor Summary
Constructors Constructor Description IcebergSourceSplitSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IcebergSourceSplit
deserialize(int version, byte[] serialized)
int
getVersion()
byte[]
serialize(IcebergSourceSplit split)
-
-
-
Field Detail
-
INSTANCE
public static final IcebergSourceSplitSerializer INSTANCE
-
-
Method Detail
-
getVersion
public int getVersion()
- Specified by:
getVersion
in interfaceorg.apache.flink.core.io.SimpleVersionedSerializer<IcebergSourceSplit>
- Specified by:
getVersion
in interfaceorg.apache.flink.core.io.Versioned
-
serialize
public byte[] serialize(IcebergSourceSplit split) throws java.io.IOException
- Specified by:
serialize
in interfaceorg.apache.flink.core.io.SimpleVersionedSerializer<IcebergSourceSplit>
- Throws:
java.io.IOException
-
deserialize
public IcebergSourceSplit deserialize(int version, byte[] serialized) throws java.io.IOException
- Specified by:
deserialize
in interfaceorg.apache.flink.core.io.SimpleVersionedSerializer<IcebergSourceSplit>
- Throws:
java.io.IOException
-
-