public static final class SchemaCompatibility.SchemaCompatibilityResult extends Object
Modifier and Type | Method and Description |
---|---|
static SchemaCompatibility.SchemaCompatibilityResult |
compatible()
Returns a details object representing a compatible schema pair.
|
boolean |
equals(Object obj) |
SchemaCompatibility.SchemaCompatibilityType |
getCompatibility()
Returns the SchemaCompatibilityType, always non-null.
|
List<SchemaCompatibility.Incompatibility> |
getIncompatibilities()
If the compatibility is INCOMPATIBLE, returns
Incompatibilities found, otherwise an empty list. |
int |
hashCode() |
static SchemaCompatibility.SchemaCompatibilityResult |
incompatible(SchemaCompatibility.SchemaIncompatibilityType incompatibilityType,
Schema readerFragment,
Schema writerFragment,
String message,
List<String> location)
Returns a details object representing an incompatible schema pair, including
error details.
|
SchemaCompatibility.SchemaCompatibilityResult |
mergedWith(SchemaCompatibility.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 SchemaCompatibility.SchemaCompatibilityResult |
recursionInProgress()
Returns a details object representing a state indicating that recursion is in
progress.
|
String |
toString() |
public SchemaCompatibility.SchemaCompatibilityResult mergedWith(SchemaCompatibility.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 SchemaCompatibility.SchemaCompatibilityResult compatible()
public static SchemaCompatibility.SchemaCompatibilityResult recursionInProgress()
public static SchemaCompatibility.SchemaCompatibilityResult incompatible(SchemaCompatibility.SchemaIncompatibilityType incompatibilityType, Schema readerFragment, Schema writerFragment, String message, List<String> location)
public SchemaCompatibility.SchemaCompatibilityType getCompatibility()
public List<SchemaCompatibility.Incompatibility> getIncompatibilities()
Incompatibilities
found, otherwise an empty list.Incompatibilities
, may be empty,
never null.Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.