Class EitherSerializerSnapshot<L,R>
- java.lang.Object
-
- org.apache.flink.api.java.typeutils.runtime.EitherSerializerSnapshot<L,R>
-
- All Implemented Interfaces:
TypeSerializerSnapshot<Either<L,R>>
@Internal @Deprecated public final class EitherSerializerSnapshot<L,R> extends Object implements TypeSerializerSnapshot<Either<L,R>>
Deprecated.this snapshot class is no longer used by any serializers. Instead,JavaEitherSerializerSnapshotis used.Configuration snapshot for theEitherSerializer.
-
-
Constructor Summary
Constructors Constructor Description EitherSerializerSnapshot()Deprecated.Constructor for read instantiation.EitherSerializerSnapshot(TypeSerializer<L> leftSerializer, TypeSerializer<R> rightSerializer)Deprecated.Constructor to create the snapshot for writing.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetCurrentVersion()Deprecated.Returns the version of the current snapshot's written binary format.TypeSerializerSnapshot<?>[]getNestedSerializerSnapshots()Deprecated.voidreadSnapshot(int readVersion, DataInputView in, ClassLoader classLoader)Deprecated.Reads the serializer snapshot from the providedDataInputView.EitherSerializer<L,R>restoreSerializer()Deprecated.Recreates a serializer instance from this snapshot.voidwriteSnapshot(DataOutputView out)Deprecated.Writes the serializer snapshot to the providedDataOutputView.-
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, resolveSchemaCompatibility
-
-
-
-
Constructor Detail
-
EitherSerializerSnapshot
public EitherSerializerSnapshot()
Deprecated.Constructor for read instantiation.
-
EitherSerializerSnapshot
public EitherSerializerSnapshot(TypeSerializer<L> leftSerializer, TypeSerializer<R> rightSerializer)
Deprecated.Constructor to create the snapshot for writing.
-
-
Method Detail
-
getCurrentVersion
public int getCurrentVersion()
Deprecated.Description copied from interface:TypeSerializerSnapshotReturns the version of the current snapshot's written binary format.- Specified by:
getCurrentVersionin interfaceTypeSerializerSnapshot<L>- Returns:
- the version of the current snapshot's written binary format.
-
writeSnapshot
public void writeSnapshot(DataOutputView out) throws IOException
Deprecated.Description copied from interface:TypeSerializerSnapshotWrites the serializer snapshot to the providedDataOutputView. The current version of the written serializer snapshot's binary format is specified by theTypeSerializerSnapshot.getCurrentVersion()method.- Specified by:
writeSnapshotin interfaceTypeSerializerSnapshot<L>- Parameters:
out- theDataOutputViewto write the snapshot to.- Throws:
IOException- Thrown if the snapshot data could not be written.- See Also:
TypeSerializerSnapshot.writeVersionedSnapshot(DataOutputView, TypeSerializerSnapshot)
-
readSnapshot
public void readSnapshot(int readVersion, DataInputView in, ClassLoader classLoader) throws IOExceptionDeprecated.Description copied from interface:TypeSerializerSnapshotReads the serializer snapshot from the providedDataInputView. The version of the binary format that the serializer snapshot was written with is provided. This version can be used to determine how the serializer snapshot should be read.- Specified by:
readSnapshotin interfaceTypeSerializerSnapshot<L>- Parameters:
readVersion- version of the serializer snapshot's written binary formatin- theDataInputViewto read the snapshot from.classLoader- the user code classloader- Throws:
IOException- Thrown if the snapshot data could be read or parsed.- See Also:
TypeSerializerSnapshot.readVersionedSnapshot(DataInputView, ClassLoader)
-
restoreSerializer
public EitherSerializer<L,R> restoreSerializer()
Deprecated.Description copied from interface:TypeSerializerSnapshotRecreates a serializer instance from this snapshot. The returned serializer can be safely used to read data written by the prior serializer (i.e., the serializer that created this snapshot).- Specified by:
restoreSerializerin interfaceTypeSerializerSnapshot<L>- Returns:
- a serializer instance restored from this serializer snapshot.
-
getNestedSerializerSnapshots
@Nullable public TypeSerializerSnapshot<?>[] getNestedSerializerSnapshots()
Deprecated.
-
-