TypeSerializerConfigSnapshot.resolveSchemaCompatibility(TypeSerializer)
and TypeSerializerSchemaCompatibility
.@Internal @Deprecated public class CompatibilityUtil extends Object
Constructor and Description |
---|
CompatibilityUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> CompatibilityResult<T> |
resolveCompatibilityResult(TypeSerializer<?> precedingSerializer,
Class<?> dummySerializerClassTag,
TypeSerializerSnapshot<?> precedingSerializerConfigSnapshot,
TypeSerializer<T> newSerializer)
Deprecated.
Resolves the final compatibility result of two serializers by taking into account compound information,
including the preceding serializer, the preceding serializer's configuration snapshot, and the new serializer.
|
static <T> CompatibilityResult<T> |
resolveCompatibilityResult(TypeSerializerSnapshot<T> precedingSerializerConfigSnapshot,
TypeSerializer<T> newSerializer)
Deprecated.
|
public static <T> CompatibilityResult<T> resolveCompatibilityResult(@Nullable TypeSerializer<?> precedingSerializer, Class<?> dummySerializerClassTag, TypeSerializerSnapshot<?> precedingSerializerConfigSnapshot, TypeSerializer<T> newSerializer)
T
- Type of the data handled by the serializersprecedingSerializer
- the preceding serializer used to write the data, null if none could be retrieveddummySerializerClassTag
- any class tags that identifies the preceding serializer as a dummy placeholderprecedingSerializerConfigSnapshot
- configuration snapshot of the preceding serializernewSerializer
- the new serializer to ensure compatibility withpublic static <T> CompatibilityResult<T> resolveCompatibilityResult(TypeSerializerSnapshot<T> precedingSerializerConfigSnapshot, TypeSerializer<T> newSerializer)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.