Class TimerSerializerSnapshot<K,N>
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot<TimerHeapInternalTimer<K,N>,TimerSerializer<K,N>>
-
- org.apache.flink.streaming.api.operators.TimerSerializerSnapshot<K,N>
-
- All Implemented Interfaces:
TypeSerializerSnapshot<TimerHeapInternalTimer<K,N>>
@Internal public class TimerSerializerSnapshot<K,N> extends CompositeTypeSerializerSnapshot<TimerHeapInternalTimer<K,N>,TimerSerializer<K,N>>
Snapshot class for theTimerSerializer
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot
CompositeTypeSerializerSnapshot.OuterSchemaCompatibility
-
-
Constructor Summary
Constructors Constructor Description TimerSerializerSnapshot()
TimerSerializerSnapshot(TimerSerializer<K,N> timerSerializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TimerSerializer<K,N>
createOuterSerializerWithNestedSerializers(TypeSerializer<?>[] nestedSerializers)
Creates an instance of the outer serializer with a given array of its nested serializers.protected int
getCurrentOuterSnapshotVersion()
Returns the version of the current outer snapshot's written binary format.protected TypeSerializer<?>[]
getNestedSerializers(TimerSerializer<K,N> 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
-
-
-
-
Constructor Detail
-
TimerSerializerSnapshot
public TimerSerializerSnapshot()
-
TimerSerializerSnapshot
public TimerSerializerSnapshot(TimerSerializer<K,N> timerSerializer)
-
-
Method Detail
-
getCurrentOuterSnapshotVersion
protected int getCurrentOuterSnapshotVersion()
Description copied from class:CompositeTypeSerializerSnapshot
Returns the version of the current outer snapshot's written binary format.- Specified by:
getCurrentOuterSnapshotVersion
in classCompositeTypeSerializerSnapshot<TimerHeapInternalTimer<K,N>,TimerSerializer<K,N>>
- Returns:
- the version of the current outer snapshot's written binary format.
-
createOuterSerializerWithNestedSerializers
protected TimerSerializer<K,N> 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<TimerHeapInternalTimer<K,N>,TimerSerializer<K,N>>
- Parameters:
nestedSerializers
- array of nested serializers to create the outer serializer with.- Returns:
- an instance of the outer serializer.
-
getNestedSerializers
protected TypeSerializer<?>[] getNestedSerializers(TimerSerializer<K,N> outerSerializer)
Description copied from class:CompositeTypeSerializerSnapshot
Gets the nested serializers from the outer serializer.- Specified by:
getNestedSerializers
in classCompositeTypeSerializerSnapshot<TimerHeapInternalTimer<K,N>,TimerSerializer<K,N>>
- Parameters:
outerSerializer
- the outer serializer.- Returns:
- the nested serializers.
-
-