Enum Class Incompatibility.Rule

java.lang.Object
java.lang.Enum<Incompatibility.Rule>
io.confluent.kafka.schemaregistry.type.logical.policy.Incompatibility.Rule
All Implemented Interfaces:
Serializable, Comparable<Incompatibility.Rule>, Constable
Enclosing class:
Incompatibility

public static enum Incompatibility.Rule extends Enum<Incompatibility.Rule>
The evolution rule that was violated. Names mirror the exception types raised by the equivalent Iceberg-schema checker, so findings can be cross-referenced between the two.
  • Enum Constant Details

    • REQUIRED_FIELD_ADDED

      public static final Incompatibility.Rule REQUIRED_FIELD_ADDED
      A field was added that is neither nullable nor defaulted.
    • FIELD_DELETED

      public static final Incompatibility.Rule FIELD_DELETED
      A field present in the original schema is missing from the update.
    • FIELD_REORDERED

      public static final Incompatibility.Rule FIELD_REORDERED
      Fields common to both schemas no longer appear in the same relative order.
    • NULLABLE_TO_NON_NULLABLE

      public static final Incompatibility.Rule NULLABLE_TO_NON_NULLABLE
      A nullable field was tightened to non-nullable.
    • NON_NULLABLE_DEFAULT_REMOVED

      public static final Incompatibility.Rule NON_NULLABLE_DEFAULT_REMOVED
      A non-nullable field lost the default that made its absence readable.
    • MAP_KEY_TYPE_MISMATCH

      public static final Incompatibility.Rule MAP_KEY_TYPE_MISMATCH
      A map's key type changed.
    • TYPE_MISMATCH

      public static final Incompatibility.Rule TYPE_MISMATCH
      The structural kind changed (e.g. STRUCT became a primitive, or ARRAY became MAP).
    • UNSUPPORTED_TYPE_CHANGE

      public static final Incompatibility.Rule UNSUPPORTED_TYPE_CHANGE
      A primitive type changed in a way the target type system does not allow.
  • Method Details

    • values

      public static Incompatibility.Rule[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Incompatibility.Rule valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null