Class Context
java.lang.Object
io.confluent.kafka.schemaregistry.json.diff.Context
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDifference(Difference.Type type) voidaddDifference(String attribute, Difference.Type type) voidaddDifferences(List<Difference> differences) voidaddDifferencesRebased(List<Difference> relativeDiffs) Adds differences that were computed relative to a nested pair, rebasing each one onto the current path.compareMemoized(org.everit.json.schema.Schema original, org.everit.json.schema.Schema update, Context.PairComparator comparator) Compares a pair of schemas with memoization, returning the differences with paths relative to the pair (i.e.boolean
-
Constructor Details
-
Context
-
-
Method Details
-
getSubcontext
-
compareMemoized
public List<Difference> compareMemoized(org.everit.json.schema.Schema original, org.everit.json.schema.Schema update, Context.PairComparator comparator) Compares a pair of schemas with memoization, returning the differences with paths relative to the pair (i.e. as if the pair were the root). If the pair is already cached the cached result is returned; if it is currently being compared higher in the stack it is treated as a compatible cycle and an empty list is returned without caching. Otherwisecomparatoris invoked on a fresh subcontext rooted at the pair, and its differences are cached. -
addDifferencesRebased
Adds differences that were computed relative to a nested pair, rebasing each one onto the current path. -
enterPath
-
isCompatible
public boolean isCompatible() -
getDifferences
-
addDifference
-
addDifference
-
addDifferences
-