Class JavaEitherSerializerSnapshot<L,R>
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot<Either<L,R>,EitherSerializer<L,R>>
-
- org.apache.flink.api.java.typeutils.runtime.JavaEitherSerializerSnapshot<L,R>
-
- All Implemented Interfaces:
TypeSerializerSnapshot<Either<L,R>>
public class JavaEitherSerializerSnapshot<L,R> extends CompositeTypeSerializerSnapshot<Either<L,R>,EitherSerializer<L,R>>
Snapshot class for theEitherSerializer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.api.common.typeutils.CompositeTypeSerializerSnapshot
CompositeTypeSerializerSnapshot.OuterSchemaCompatibility
-
-
Constructor Summary
Constructors Constructor Description JavaEitherSerializerSnapshot()Constructor for read instantiation.JavaEitherSerializerSnapshot(EitherSerializer<L,R> eitherSerializer)Constructor to create the snapshot for writing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EitherSerializer<L,R>createOuterSerializerWithNestedSerializers(TypeSerializer<?>[] nestedSerializers)Creates an instance of the outer serializer with a given array of its nested serializers.protected intgetCurrentOuterSnapshotVersion()Returns the version of the current outer snapshot's written binary format.protected TypeSerializer<?>[]getNestedSerializers(EitherSerializer<L,R> 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
-
JavaEitherSerializerSnapshot
public JavaEitherSerializerSnapshot()
Constructor for read instantiation.
-
JavaEitherSerializerSnapshot
public JavaEitherSerializerSnapshot(EitherSerializer<L,R> eitherSerializer)
Constructor to create the snapshot for writing.
-
-
Method Detail
-
getCurrentOuterSnapshotVersion
protected int getCurrentOuterSnapshotVersion()
Description copied from class:CompositeTypeSerializerSnapshotReturns the version of the current outer snapshot's written binary format.- Specified by:
getCurrentOuterSnapshotVersionin classCompositeTypeSerializerSnapshot<Either<L,R>,EitherSerializer<L,R>>- Returns:
- the version of the current outer snapshot's written binary format.
-
createOuterSerializerWithNestedSerializers
protected EitherSerializer<L,R> 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<Either<L,R>,EitherSerializer<L,R>>- Parameters:
nestedSerializers- array of nested serializers to create the outer serializer with.- Returns:
- an instance of the outer serializer.
-
getNestedSerializers
protected TypeSerializer<?>[] getNestedSerializers(EitherSerializer<L,R> outerSerializer)
Description copied from class:CompositeTypeSerializerSnapshotGets the nested serializers from the outer serializer.- Specified by:
getNestedSerializersin classCompositeTypeSerializerSnapshot<Either<L,R>,EitherSerializer<L,R>>- Parameters:
outerSerializer- the outer serializer.- Returns:
- the nested serializers.
-
-