public static final class AvroSchemaCompatibility.SchemaCompatibilityResult extends Object
| Modifier and Type | Method and Description |
|---|---|
static AvroSchemaCompatibility.SchemaCompatibilityResult |
compatible()
Returns a details object representing a compatible schema pair.
|
boolean |
equals(Object obj) |
AvroSchemaCompatibility.SchemaCompatibilityType |
getCompatibility()
Returns the SchemaCompatibilityType, always non-null.
|
List<AvroSchemaCompatibility.Incompatibility> |
getIncompatibilities()
If the compatibility is INCOMPATIBLE, returns
Incompatibilities found, otherwise an empty list. |
int |
hashCode() |
static AvroSchemaCompatibility.SchemaCompatibilityResult |
incompatible(AvroSchemaCompatibility.SchemaIncompatibilityType incompatibilityType,
org.apache.avro.Schema readerFragment,
org.apache.avro.Schema writerFragment,
String message,
List<String> location)
Returns a details object representing an incompatible schema pair, including
error details.
|
AvroSchemaCompatibility.SchemaCompatibilityResult |
mergedWith(AvroSchemaCompatibility.SchemaCompatibilityResult toMerge)
Merges the current
SchemaCompatibilityResult with the supplied result
into a new instance, combining the list of
Incompatibility Incompatibilities and regressing to the
SchemaCompatibilityType#INCOMPATIBLE INCOMPATIBLE state if any
incompatibilities are encountered. |
static AvroSchemaCompatibility.SchemaCompatibilityResult |
recursionInProgress()
Returns a details object representing a state indicating that recursion is in
progress.
|
String |
toString() |
public AvroSchemaCompatibility.SchemaCompatibilityResult mergedWith(AvroSchemaCompatibility.SchemaCompatibilityResult toMerge)
SchemaCompatibilityResult with the supplied result
into a new instance, combining the list of
Incompatibility Incompatibilities and regressing to the
SchemaCompatibilityType#INCOMPATIBLE INCOMPATIBLE state if any
incompatibilities are encountered.toMerge - The SchemaCompatibilityResult to merge with the
current instance.SchemaCompatibilityResult that combines the state of the
current and supplied instances.public static AvroSchemaCompatibility.SchemaCompatibilityResult compatible()
public static AvroSchemaCompatibility.SchemaCompatibilityResult recursionInProgress()
public static AvroSchemaCompatibility.SchemaCompatibilityResult incompatible(AvroSchemaCompatibility.SchemaIncompatibilityType incompatibilityType, org.apache.avro.Schema readerFragment, org.apache.avro.Schema writerFragment, String message, List<String> location)
public AvroSchemaCompatibility.SchemaCompatibilityType getCompatibility()
public List<AvroSchemaCompatibility.Incompatibility> getIncompatibilities()
Incompatibilities found, otherwise an empty list.Incompatibilities, may be empty,
never null.Copyright © 2024 The Apache Software Foundation. All rights reserved.