Class OpenLineageDataQualityMetricsInputDataSetFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageInputDataSetInputFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageDataQualityMetricsInputDataSetFacet
public class OpenLineageDataQualityMetricsInputDataSetFacet
extends OpenLineageInputDataSetInputFacet
This class represents the dataQualityMetrics input dataset facet. It captures data quality metrics for the data read from the dataset by the run.
It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-3/DataQualityMetricsInputDatasetFacet.json#/$defs/DataQualityMetricsInputDatasetFacet.
-
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.OpenLineageFacet
get_producer, get_schemaURL, getAdditionalProperties, set_producer, set_schemaURL, setAdditionalProperties, setAdditionalProperty
-
Constructor Details
-
OpenLineageDataQualityMetricsInputDataSetFacet
public OpenLineageDataQualityMetricsInputDataSetFacet()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 classOpenLineageInputDataSetInputFacet- 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 classOpenLineageFacet- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classOpenLineageFacet- Returns:
- int
-