Class UnversionedTypeSerializerSnapshot<T>
- java.lang.Object
-
- org.apache.beam.runners.flink.translation.types.UnversionedTypeSerializerSnapshot<T>
-
- All Implemented Interfaces:
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T>
public class UnversionedTypeSerializerSnapshot<T> extends java.lang.Object implements org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T>A legacy snapshot which does not care about schema compatibility.
-
-
Constructor Summary
Constructors Constructor Description UnversionedTypeSerializerSnapshot()Needs to be public to work withVersionedIOReadableWritable.UnversionedTypeSerializerSnapshot(CoderTypeSerializer<T> serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentVersion()voidreadSnapshot(int version, org.apache.flink.core.memory.DataInputView dataInputView, java.lang.ClassLoader classLoader)org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<T>resolveSchemaCompatibility(org.apache.flink.api.common.typeutils.TypeSerializer<T> newSerializer)org.apache.flink.api.common.typeutils.TypeSerializer<T>restoreSerializer()voidwriteSnapshot(org.apache.flink.core.memory.DataOutputView dataOutputView)
-
-
-
Constructor Detail
-
UnversionedTypeSerializerSnapshot
public UnversionedTypeSerializerSnapshot()
Needs to be public to work withVersionedIOReadableWritable.
-
UnversionedTypeSerializerSnapshot
public UnversionedTypeSerializerSnapshot(CoderTypeSerializer<T> serializer)
-
-
Method Detail
-
getCurrentVersion
public int getCurrentVersion()
- Specified by:
getCurrentVersionin interfaceorg.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T>
-
writeSnapshot
public void writeSnapshot(org.apache.flink.core.memory.DataOutputView dataOutputView) throws java.io.IOException- Specified by:
writeSnapshotin interfaceorg.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T>- Throws:
java.io.IOException
-
readSnapshot
public void readSnapshot(int version, org.apache.flink.core.memory.DataInputView dataInputView, java.lang.ClassLoader classLoader) throws java.io.IOException- Specified by:
readSnapshotin interfaceorg.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T>- Throws:
java.io.IOException
-
restoreSerializer
public org.apache.flink.api.common.typeutils.TypeSerializer<T> restoreSerializer()
- Specified by:
restoreSerializerin interfaceorg.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T>
-
resolveSchemaCompatibility
public org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<T> resolveSchemaCompatibility(org.apache.flink.api.common.typeutils.TypeSerializer<T> newSerializer)
- Specified by:
resolveSchemaCompatibilityin interfaceorg.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T>
-
-