Class ContractEvaluator
java.lang.Object
org.odpi.openmetadata.adapters.connectors.integration.bitol.contractevaluator.ContractEvaluator
ContractEvaluator checks what is known about an asset against an Open Data Contract Standard (ODCS)
contract. It works only from the contract and a set of named measurements, so it reads no metadata and
opens no data.
There are two sorts of failure. The shape of the data has drifted when a field that the contract requires, or marks as a critical data element, is missing; when a value is not of the contracted type; or when a value is given in a different unit from the contract. A value breaks the contract when it fails a quality rule, or lies outside the range that the contract gives for its field. A quality rule of severity warning or info is reported, but does not fail the asset.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(DataContract contract, String schemaObjectName) Check the asset against a contract.
-
Constructor Details
-
ContractEvaluator
Constructor.- Parameters:
measurements- what is known about the asset (a later measurement replaces an earlier one of the same name; names are compared without regard to case)
-
-
Method Details
-
evaluate
Check the asset against a contract.- Parameters:
contract- the contractschemaObjectName- name of the schema object in the contract that describes the asset, or null to check the asset against every schema object- Returns:
- the findings
-