public static class EventRowSerializer.EventRowSerializerSnapshot extends Object implements org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<org.apache.flink.types.Row>
EventRowSerializer
.
It is able to durably store this state (reason why it allows specifying a version).
When storing
TypeSerializerSnapshotSerializationUtil#writeSerializerSnapshot(DataOutputView, TypeSerializerSnapshot)
is used and will store
getCurrentVersion()
writeSnapshot(DataOutputView)
TypeSerializerSnapshotSerializationUtil#readSerializerSnapshot(DataInputView, ClassLoader)
it will:
TypeSerializerSnapshot
using the classname stored (using the empty ctor)TypeSerializerSnapshot.readVersionedSnapshot(DataInputView, ClassLoader)
restoreSerializer()
.
And also determine its level of compatibility with the runtime serializer with resolveSchemaCompatibility(TypeSerializerSnapshot)
.Constructor and Description |
---|
EventRowSerializerSnapshot() |
EventRowSerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializer<?>[] fieldSerializers,
LinkedHashMap<String,Integer> positionByNames) |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentVersion() |
void |
readSnapshot(int readVersion,
org.apache.flink.core.memory.DataInputView in,
ClassLoader userCodeClassLoader) |
void |
readV1(org.apache.flink.core.memory.DataInputView in,
ClassLoader userCodeClassLoader) |
org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<org.apache.flink.types.Row> |
resolveSchemaCompatibility(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<org.apache.flink.types.Row> oldSerializerSnapshot) |
<E> org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<E> |
resolveSubFieldCompat(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> newFieldSnapshot,
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> oldFieldSnapshot) |
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> |
restoreSerializer() |
void |
writeSnapshot(org.apache.flink.core.memory.DataOutputView out) |
public EventRowSerializerSnapshot()
public EventRowSerializerSnapshot(org.apache.flink.api.common.typeutils.TypeSerializer<?>[] fieldSerializers, LinkedHashMap<String,Integer> positionByNames)
public int getCurrentVersion()
getCurrentVersion
in interface org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<org.apache.flink.types.Row>
public void writeSnapshot(org.apache.flink.core.memory.DataOutputView out) throws IOException
writeSnapshot
in interface org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<org.apache.flink.types.Row>
IOException
public 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<org.apache.flink.types.Row>
IOException
public void readV1(org.apache.flink.core.memory.DataInputView in, ClassLoader userCodeClassLoader) throws IOException
IOException
public org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.types.Row> restoreSerializer()
restoreSerializer
in interface org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<org.apache.flink.types.Row>
public org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<org.apache.flink.types.Row> resolveSchemaCompatibility(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<org.apache.flink.types.Row> oldSerializerSnapshot)
resolveSchemaCompatibility
in interface org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<org.apache.flink.types.Row>
public <E> org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<E> resolveSubFieldCompat(org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> newFieldSnapshot, org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> oldFieldSnapshot)
Copyright © 2024. All rights reserved.