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