Class ListSerializerSnapshot<T>
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot<List<T>,ListSerializer<T>>
-
- org.apache.flink.api.common.typeutils.base.ListSerializerSnapshot<T>
-
- All Implemented Interfaces:
TypeSerializerSnapshot<List<T>>
public class ListSerializerSnapshot<T> extends CompositeTypeSerializerSnapshot<List<T>,ListSerializer<T>>
Snapshot class for theListSerializer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot
CompositeTypeSerializerSnapshot.OuterSchemaCompatibility
-
-
Constructor Summary
Constructors Constructor Description ListSerializerSnapshot()Constructor for read instantiation.ListSerializerSnapshot(ListSerializer<T> listSerializer)Constructor to create the snapshot for writing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ListSerializer<T>createOuterSerializerWithNestedSerializers(TypeSerializer<?>[] nestedSerializers)Creates an instance of the outer serializer with a given array of its nested serializers.intgetCurrentOuterSnapshotVersion()Returns the version of the current outer snapshot's written binary format.protected TypeSerializer<?>[]getNestedSerializers(ListSerializer<T> outerSerializer)Gets the nested serializers from the outer serializer.-
Methods inherited from class org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot
getCurrentVersion, getNestedSerializerSnapshots, isOuterSnapshotCompatible, readOuterSnapshot, readSnapshot, resolveOuterSchemaCompatibility, resolveSchemaCompatibility, restoreSerializer, writeOuterSnapshot, writeSnapshot
-
-
-
-
Constructor Detail
-
ListSerializerSnapshot
public ListSerializerSnapshot()
Constructor for read instantiation.
-
ListSerializerSnapshot
public ListSerializerSnapshot(ListSerializer<T> listSerializer)
Constructor to create the snapshot for writing.
-
-
Method Detail
-
getCurrentOuterSnapshotVersion
public int getCurrentOuterSnapshotVersion()
Description copied from class:CompositeTypeSerializerSnapshotReturns the version of the current outer snapshot's written binary format.- Specified by:
getCurrentOuterSnapshotVersionin classCompositeTypeSerializerSnapshot<List<T>,ListSerializer<T>>- Returns:
- the version of the current outer snapshot's written binary format.
-
createOuterSerializerWithNestedSerializers
protected ListSerializer<T> createOuterSerializerWithNestedSerializers(TypeSerializer<?>[] nestedSerializers)
Description copied from class:CompositeTypeSerializerSnapshotCreates an instance of the outer serializer with a given array of its nested serializers.- Specified by:
createOuterSerializerWithNestedSerializersin classCompositeTypeSerializerSnapshot<List<T>,ListSerializer<T>>- Parameters:
nestedSerializers- array of nested serializers to create the outer serializer with.- Returns:
- an instance of the outer serializer.
-
getNestedSerializers
protected TypeSerializer<?>[] getNestedSerializers(ListSerializer<T> outerSerializer)
Description copied from class:CompositeTypeSerializerSnapshotGets the nested serializers from the outer serializer.- Specified by:
getNestedSerializersin classCompositeTypeSerializerSnapshot<List<T>,ListSerializer<T>>- Parameters:
outerSerializer- the outer serializer.- Returns:
- the nested serializers.
-
-