Class DataContractSchemaObject
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.odcs.DataContractSchemaElement
org.odpi.openmetadata.frameworks.integration.bitol.odcs.DataContractSchemaObject
This class represents a schema object (typically a table, view, topic or file) in an Open Data Contract
Standard (ODCS) data contract. The schema object has a list of properties (columns/fields), relationships to
other schema objects and data quality checks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the AI and semantic context block for this schema object.Return the description of the granularity of the data, for example the aggregation level.Return the logical type of the schema object.Return the list of properties (columns/fields) of the schema object.Return the list of data quality checks for this schema object.Return the list of relationships from this schema object to other schema objects.inthashCode()Return hash code based on properties.voidsetContext(BitolContext context) Set up the AI and semantic context block for this schema object.voidsetDataGranularityDescription(String dataGranularityDescription) Set up the description of the granularity of the data, for example the aggregation level.voidsetLogicalType(String logicalType) Set up the logical type of the schema object.voidsetProperties(List<DataContractSchemaProperty> properties) Set up the list of properties (columns/fields) of the schema object.voidsetQuality(List<DataContractQualityRule> quality) Set up the list of data quality checks for this schema object.voidsetRelationships(List<DataContractRelationship> relationships) Set up the list of relationships from this schema object to other schema objects.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.integration.bitol.odcs.DataContractSchemaElement
getAuthoritativeDefinitions, getBusinessName, getCustomProperties, getDeprecated, getDescription, getId, getName, getPhysicalName, getPhysicalType, getSynonyms, getTags, setAuthoritativeDefinitions, setBusinessName, setCustomProperties, setDeprecated, setDescription, setId, setName, setPhysicalName, setPhysicalType, setSynonyms, setTags
-
Constructor Details
-
DataContractSchemaObject
public DataContractSchemaObject()Default constructor
-
-
Method Details
-
getLogicalType
Return the logical type of the schema object. The only standard value is object.- Returns:
- string type name
-
setLogicalType
Set up the logical type of the schema object. The only standard value is object.- Parameters:
logicalType- string type name
-
getDataGranularityDescription
Return the description of the granularity of the data, for example the aggregation level.- Returns:
- string description
-
setDataGranularityDescription
Set up the description of the granularity of the data, for example the aggregation level.- Parameters:
dataGranularityDescription- string description
-
getProperties
Return the list of properties (columns/fields) of the schema object.- Returns:
- list of properties
-
setProperties
Set up the list of properties (columns/fields) of the schema object.- Parameters:
properties- list of properties
-
getRelationships
Return the list of relationships from this schema object to other schema objects.- Returns:
- list of relationships
-
setRelationships
Set up the list of relationships from this schema object to other schema objects.- Parameters:
relationships- list of relationships
-
getQuality
Return the list of data quality checks for this schema object.- Returns:
- list of quality rules
-
setQuality
Set up the list of data quality checks for this schema object.- Parameters:
quality- list of quality rules
-
getContext
Return the AI and semantic context block for this schema object.- Returns:
- BitolContext
-
setContext
Set up the AI and semantic context block for this schema object.- Parameters:
context- BitolContext
-
toString
Standard toString method.- Overrides:
toStringin classDataContractSchemaElement- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classDataContractSchemaElement- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classDataContractSchemaElement- Returns:
- int
-