Constructor and Description |
---|
CompatibilityUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> CompatibilityResult<T> |
resolveCompatibilityResult(TypeSerializer<?> precedingSerializer,
Class<?> dummySerializerClassTag,
TypeSerializerConfigSnapshot precedingSerializerConfigSnapshot,
TypeSerializer<T> newSerializer)
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.
|
public static <T> CompatibilityResult<T> resolveCompatibilityResult(@Nullable TypeSerializer<?> precedingSerializer, Class<?> dummySerializerClassTag, TypeSerializerConfigSnapshot 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 withCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.