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.intgetCurrentOuterSnapshotVersion()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.-
Methods inherited from class org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot
getCurrentVersion, getNestedSerializerSnapshots, isOuterSnapshotCompatible, readOuterSnapshot, readSnapshot, resolveOuterSchemaCompatibility, resolveOuterSchemaCompatibility, resolveSchemaCompatibility, restoreSerializer, writeOuterSnapshot, writeSnapshot
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.api.common.typeutils.TypeSerializerSnapshot
resolveSchemaCompatibility
-
-
-
-
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:CompositeTypeSerializerSnapshotReturns the version of the current outer snapshot's written binary format.- Specified by:
getCurrentOuterSnapshotVersionin 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:CompositeTypeSerializerSnapshotCreates an instance of the outer serializer with a given array of its nested serializers.- Specified by:
createOuterSerializerWithNestedSerializersin 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:CompositeTypeSerializerSnapshotGets the nested serializers from the outer serializer.- Specified by:
getNestedSerializersin classCompositeTypeSerializerSnapshot<Map<K,V>,MapSerializer<K,V>>- Parameters:
outerSerializer- the outer serializer.- Returns:
- the nested serializers.
-
getKeySerializerSnapshot
public TypeSerializerSnapshot<K> getKeySerializerSnapshot()
-
-