Package org.apache.avro
Class SchemaCompatibility.Incompatibility
java.lang.Object
org.apache.avro.SchemaCompatibility.Incompatibility
- Enclosing class:
SchemaCompatibility
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a JSON Pointer describing the node location within the schema's JSON document tree where the incompatibility was encountered.Returns a human-readable message with more details about what failed.Returns the fragment of the reader schema that failed compatibility check.getType()Returns the SchemaIncompatibilityType.Returns the fragment of the writer schema that failed compatibility check.inthashCode()toString()
-
Method Details
-
getType
Returns the SchemaIncompatibilityType.- Returns:
- a SchemaIncompatibilityType instance.
-
getReaderFragment
Returns the fragment of the reader schema that failed compatibility check.- Returns:
- a Schema instance (fragment of the reader schema).
-
getWriterFragment
Returns the fragment of the writer schema that failed compatibility check.- Returns:
- a Schema instance (fragment of the writer schema).
-
getMessage
Returns a human-readable message with more details about what failed. Syntax depends on the SchemaIncompatibilityType.- Returns:
- a String with details about the incompatibility.
- See Also:
-
getLocation
Returns a JSON Pointer describing the node location within the schema's JSON document tree where the incompatibility was encountered.- Returns:
- JSON Pointer encoded as a string.
-
hashCode
public int hashCode() -
equals
-
toString
-