Class TtlStateFactory.TtlSerializerSnapshot<T>
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot<TtlValue<T>,TtlStateFactory.TtlSerializer<T>>
-
- org.apache.flink.runtime.state.ttl.TtlStateFactory.TtlSerializerSnapshot<T>
-
- All Implemented Interfaces:
TypeSerializerSnapshot<TtlValue<T>>
public static final class TtlStateFactory.TtlSerializerSnapshot<T> extends CompositeTypeSerializerSnapshot<TtlValue<T>,TtlStateFactory.TtlSerializer<T>>
ATypeSerializerSnapshot
for TtlSerializer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot
CompositeTypeSerializerSnapshot.OuterSchemaCompatibility
-
-
Constructor Summary
Constructors Constructor Description TtlSerializerSnapshot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TtlStateFactory.TtlSerializer<T>
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(TtlStateFactory.TtlSerializer<T> outerSerializer)
Gets the nested serializers from the outer serializer.TypeSerializerSnapshot<T>
getValueSerializerSnapshot()
-
Methods inherited from class org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot
getCurrentVersion, getNestedSerializerSnapshots, isOuterSnapshotCompatible, readOuterSnapshot, readSnapshot, resolveOuterSchemaCompatibility, resolveOuterSchemaCompatibility, resolveSchemaCompatibility, restoreSerializer, writeOuterSnapshot, writeSnapshot
-
-
-
-
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<TtlValue<T>,TtlStateFactory.TtlSerializer<T>>
- Returns:
- the version of the current outer snapshot's written binary format.
-
getNestedSerializers
protected TypeSerializer<?>[] getNestedSerializers(TtlStateFactory.TtlSerializer<T> outerSerializer)
Description copied from class:CompositeTypeSerializerSnapshot
Gets the nested serializers from the outer serializer.- Specified by:
getNestedSerializers
in classCompositeTypeSerializerSnapshot<TtlValue<T>,TtlStateFactory.TtlSerializer<T>>
- Parameters:
outerSerializer
- the outer serializer.- Returns:
- the nested serializers.
-
createOuterSerializerWithNestedSerializers
protected TtlStateFactory.TtlSerializer<T> 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<TtlValue<T>,TtlStateFactory.TtlSerializer<T>>
- Parameters:
nestedSerializers
- array of nested serializers to create the outer serializer with.- Returns:
- an instance of the outer serializer.
-
getValueSerializerSnapshot
public TypeSerializerSnapshot<T> getValueSerializerSnapshot()
-
-