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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA field present in the original schema is missing from the update.Fields common to both schemas no longer appear in the same relative order.A map's key type changed.A non-nullable field lost the default that made its absence readable.A nullable field was tightened to non-nullable.A field was added that is neither nullable nor defaulted.The structural kind changed (e.g.A primitive type changed in a way the target type system does not allow. -
Method Summary
Modifier and TypeMethodDescriptionstatic Incompatibility.RuleReturns the enum constant of this class with the specified name.static Incompatibility.Rule[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED_FIELD_ADDED
A field was added that is neither nullable nor defaulted. -
FIELD_DELETED
A field present in the original schema is missing from the update. -
FIELD_REORDERED
Fields common to both schemas no longer appear in the same relative order. -
NULLABLE_TO_NON_NULLABLE
A nullable field was tightened to non-nullable. -
NON_NULLABLE_DEFAULT_REMOVED
A non-nullable field lost the default that made its absence readable. -
MAP_KEY_TYPE_MISMATCH
A map's key type changed. -
TYPE_MISMATCH
The structural kind changed (e.g. STRUCT became a primitive, or ARRAY became MAP). -
UNSUPPORTED_TYPE_CHANGE
A primitive type changed in a way the target type system does not allow.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-