Class CompatibilityResult
java.lang.Object
io.confluent.kafka.schemaregistry.type.logical.policy.CompatibilityResult
The outcome of a
LogicalTypeChecker.compare(io.confluent.kafka.schemaregistry.type.logical.policy.LogicalTypeChecker.Mode, io.confluent.kafka.schemaregistry.type.logical.LogicalType, io.confluent.kafka.schemaregistry.type.logical.LogicalType) call.
All violations are collected rather than failing on the first one, so a caller can present the complete set of problems with a schema change in one pass.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompatibilityResultReturns a result with no violations.describe()Renders every violation as a single newline-separated string, suitable for an error message.The violations found, in the order they were discovered.booleanstatic CompatibilityResultof(List<Incompatibility> incompatibilities) Returns a result carrying the given violations, orcompatible()if there are none.toString()
-
Method Details
-
compatible
Returns a result with no violations. -
of
Returns a result carrying the given violations, orcompatible()if there are none. -
isCompatible
public boolean isCompatible() -
getIncompatibilities
The violations found, in the order they were discovered. Empty when compatible. -
describe
Renders every violation as a single newline-separated string, suitable for an error message. Returns the empty string when compatible. -
toString
-