Class SchemaComparator


  • public abstract class SchemaComparator
    extends java.lang.Object
    Utilities for comparing two record descriptors in order to determine whether messages serialized with one can be deserialized with another.
    • Field Detail

      • DETECT_ONLY_STRUCTURAL_INCOMPATIBILITY

        public static final long DETECT_ONLY_STRUCTURAL_INCOMPATIBILITY
        Detect only those changes that cause structural incompatibility between two schemas, ignoring name changes, and anything else unless it is guaranteed to make the schemas incompatible.
        See Also:
        Constant Field Values
      • DETECT_ALL_CHANGES

        public static final long DETECT_ALL_CHANGES
        Detect all changes that affect non-static fields, except annotations such as titles or primary keys (ignore nothing).
        See Also:
        Constant Field Values
      • IGNORE_FIELD_NAME_CHANGE

        public static final long IGNORE_FIELD_NAME_CHANGE
        Ignore changed field names, as long as their types and encodings remain compatible.
        See Also:
        Constant Field Values
      • IGNORE_CLASS_NAME_CHANGE

        public static final long IGNORE_CLASS_NAME_CHANGE
        Ignore changed class names, as long as their internal structure remains compatible.
        See Also:
        Constant Field Values
      • IGNORE_ENUM_NAME_CHANGE

        public static final long IGNORE_ENUM_NAME_CHANGE
        Ignore changed enum constant names.
        See Also:
        Constant Field Values
      • IGNORE_ENUM_EXTENSION

        public static final long IGNORE_ENUM_EXTENSION
        Ignore the extention of enumerated types.
        See Also:
        Constant Field Values
      • IGNORE_ENUM_REDUCTION

        public static final long IGNORE_ENUM_REDUCTION
        Ignore the reduction of enumerated types.
        See Also:
        Constant Field Values
      • IGNORE_RANGE_NARROWING

        public static final long IGNORE_RANGE_NARROWING
        Ignore the narrowing of numeric value ranges.
        See Also:
        Constant Field Values
      • IGNORE_BINDING_CHANGE

        public static final long IGNORE_BINDING_CHANGE
        Ignore changed bound class names.
        See Also:
        Constant Field Values
      • IGNORE_HIERARCHY_CHANGE

        public static final long IGNORE_HIERARCHY_CHANGE
        Ignore changes in class hierarchy, as long as all fields are in the same order.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SchemaComparator

        public SchemaComparator()