public class NestedSerializersSnapshotDelegate extends Object
The NestedSerializersSnapshotDelegate does not implement the TypeSerializerSnapshot
interface. It is not meant to be inherited from, but to be composed with a serializer snapshot
implementation.
The NestedSerializersSnapshotDelegate has its own versioning internally, it does not couple its versioning to the versioning of the TypeSerializerSnapshot that builds on top of this class. That way, the NestedSerializersSnapshotDelegate and enclosing TypeSerializerSnapshot the can evolve their formats independently.
| 构造器和说明 |
|---|
NestedSerializersSnapshotDelegate(org.apache.flink.api.common.typeutils.TypeSerializer<?>... serializers)
Constructor to create a snapshot for writing.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>[] |
getNestedSerializerSnapshots()
Returns the snapshots of the nested serializers.
|
<T> org.apache.flink.api.common.typeutils.TypeSerializer<T> |
getRestoredNestedSerializer(int pos)
Creates the restore serializer from the pos-th config snapshot.
|
org.apache.flink.api.common.typeutils.TypeSerializer<?>[] |
getRestoredNestedSerializers()
Produces a restore serializer from each contained serializer configuration snapshot.
|
static NestedSerializersSnapshotDelegate |
readNestedSerializerSnapshots(org.apache.flink.core.memory.DataInputView in,
ClassLoader cl)
Reads the composite snapshot of all the contained serializers.
|
<T> org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<T> |
resolveCompatibilityWithNested(org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<?> outerCompatibility,
org.apache.flink.api.common.typeutils.TypeSerializer<?>... newNestedSerializers)
已过时。
this no method will be removed in the future. Resolving compatibility for nested
serializers is now handled by
CompositeTypeSerializerSnapshot. |
void |
writeNestedSerializerSnapshots(org.apache.flink.core.memory.DataOutputView out)
Writes the composite snapshot of all the contained serializers.
|
public NestedSerializersSnapshotDelegate(org.apache.flink.api.common.typeutils.TypeSerializer<?>... serializers)
public org.apache.flink.api.common.typeutils.TypeSerializer<?>[] getRestoredNestedSerializers()
public <T> org.apache.flink.api.common.typeutils.TypeSerializer<T> getRestoredNestedSerializer(int pos)
public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>[] getNestedSerializerSnapshots()
@Deprecated public <T> org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<T> resolveCompatibilityWithNested(org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<?> outerCompatibility, org.apache.flink.api.common.typeutils.TypeSerializer<?>... newNestedSerializers)
CompositeTypeSerializerSnapshot.public final void writeNestedSerializerSnapshots(org.apache.flink.core.memory.DataOutputView out)
throws IOException
IOExceptionpublic static NestedSerializersSnapshotDelegate readNestedSerializerSnapshots(org.apache.flink.core.memory.DataInputView in, ClassLoader cl) throws IOException
IOExceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.