public class ScalaEitherSerializerSnapshot<L,R> extends Object implements org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<scala.util.Either<L,R>>
Either type,
containing configuration snapshots of the Left and Right serializers.| Constructor and Description |
|---|
ScalaEitherSerializerSnapshot()
Constructor for read instantiation.
|
ScalaEitherSerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializer<L> leftSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<R> rightSerializer)
Constructor to create the snapshot for writing.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentVersion() |
void |
readSnapshot(int readVersion,
org.apache.flink.core.memory.DataInputView in,
ClassLoader userCodeClassLoader) |
org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<scala.util.Either<L,R>> |
resolveSchemaCompatibility(org.apache.flink.api.common.typeutils.TypeSerializer<scala.util.Either<L,R>> newSerializer) |
org.apache.flink.api.common.typeutils.TypeSerializer<scala.util.Either<L,R>> |
restoreSerializer() |
void |
writeSnapshot(org.apache.flink.core.memory.DataOutputView out) |
public ScalaEitherSerializerSnapshot()
public int getCurrentVersion()
public org.apache.flink.api.common.typeutils.TypeSerializer<scala.util.Either<L,R>> restoreSerializer()
public org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<scala.util.Either<L,R>> resolveSchemaCompatibility(org.apache.flink.api.common.typeutils.TypeSerializer<scala.util.Either<L,R>> newSerializer)
public void writeSnapshot(org.apache.flink.core.memory.DataOutputView out)
throws IOException
writeSnapshot in interface org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<scala.util.Either<L,R>>IOExceptionpublic void readSnapshot(int readVersion,
org.apache.flink.core.memory.DataInputView in,
ClassLoader userCodeClassLoader)
throws IOException
readSnapshot in interface org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<scala.util.Either<L,R>>IOExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.