public class ClassificationDifferences extends Differences
Capture the differences between classification instances. These differences are calculated irrespective of the ordering of the classification lists, and differences are based on the names of the classifications (assuming that a classification with a given name can only exist once on a given entity instance). Note that differences in instance properties within each classification are not explicitly captured here. If you need this level of detail captured on differences, simply:
- Use the getLeft() and getRight() methods to retrieve the differing classifications from this object.
- Instantiate your own InstancePropertiesDifferences object.
- Call the check() method of the InstancePropertiesDifferences object, passing in the getProperties() result from both the left and right objects retrieved in the first step.
- The InstancePropertiesDifferences object will then contain the detailed instance properties differences between just those two differing classifications.
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
differing, matching, onlyOnLeft, onlyOnRight
Constructor SummaryConstructorDescriptionConstruct a new set of differences between two instance's classifications.
Method SummaryModifier and TypeMethodDescription
(EntitySummary left, EntitySummary right)Determine if there is a difference in classifications between the provided EntitySummary objects, and capture each of the differences and similarities.
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Differences
addDiffering, addMatching, addOnlyOnOneSide, check, getLeftValue, getNames, getOnlyOnLeft, getOnlyOnRight, getRightValue, hasDifferences, isDifferent
ClassificationDifferencespublic ClassificationDifferences()Construct a new set of differences between two instance's classifications.
checkpublic void check
(EntitySummary left, EntitySummary right)Determine if there is a difference in classifications between the provided EntitySummary objects, and capture each of the differences and similarities. Note that this will check for differences between the classifications irrespective of their ordering in each list, as this is presumably the desired behavior.
left- the first instance to compare
right- the second instance to compare