Class OpenLineageDataQualityMetricsDataSetFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageDataSetFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageDataQualityMetricsDataSetFacet
This class represents the dataQualityMetrics dataset facet. It captures data quality metrics for the dataset as a whole.
It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-0/DataQualityMetricsDatasetFacet.json#/$defs/DataQualityMetricsDatasetFacet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.getBytes()Return the size in bytes.Return the metrics for each column.Return the number of files evaluated.Return the ISO-8601 timestamp of the last time the dataset was changed.Return the number of rows evaluated.inthashCode()Return hash code based on properties.voidSet up the size in bytes.voidsetColumnMetrics(Map<String, OpenLineageDataQualityMetricsColumnMetrics> columnMetrics) Set up the metrics for each column.voidsetFileCount(Long fileCount) Set up the number of files evaluated.voidsetLastUpdated(String lastUpdated) Set up the ISO-8601 timestamp of the last time the dataset was changed.voidsetRowCount(Long rowCount) Set up the number of rows evaluated.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageDataSetFacet
get_deleted, set_deletedMethods inherited from class org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
get_producer, get_schemaURL, getAdditionalProperties, set_producer, set_schemaURL, setAdditionalProperties, setAdditionalProperty
-
Constructor Details
-
OpenLineageDataQualityMetricsDataSetFacet
public OpenLineageDataQualityMetricsDataSetFacet()Default constructor
-
-
Method Details
-
getRowCount
Return the number of rows evaluated.- Returns:
- long
-
setRowCount
Set up the number of rows evaluated.- Parameters:
rowCount- long
-
getBytes
Return the size in bytes.- Returns:
- long
-
setBytes
Set up the size in bytes.- Parameters:
bytes- long
-
getFileCount
Return the number of files evaluated.- Returns:
- long
-
setFileCount
Set up the number of files evaluated.- Parameters:
fileCount- long
-
getLastUpdated
Return the ISO-8601 timestamp of the last time the dataset was changed.- Returns:
- string
-
setLastUpdated
Set up the ISO-8601 timestamp of the last time the dataset was changed.- Parameters:
lastUpdated- string
-
getColumnMetrics
Return the metrics for each column. The map key is the column name.- Returns:
- map
-
setColumnMetrics
Set up the metrics for each column. The map key is the column name.- Parameters:
columnMetrics- map
-
toString
Standard toString method.- Overrides:
toStringin classOpenLineageDataSetFacet- 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 classOpenLineageDataSetFacet- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classOpenLineageDataSetFacet- Returns:
- int
-