Class OpenLineageLifecycleStateChangeDataSetFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageDataSetFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageLifecycleStateChangeDataSetFacet
This class represents the lifecycleStateChange dataset facet. It records a change to the lifecycle of the dataset, for example CREATE, DROP or RENAME.
It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-1/LifecycleStateChangeDatasetFacet.json#/$defs/LifecycleStateChangeDatasetFacet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the lifecycle state change: ALTER, CREATE, DROP, OVERWRITE, RENAME or TRUNCATE.Return the previous name of the dataset in the case of a rename.inthashCode()Return hash code based on properties.voidsetLifecycleStateChange(String lifecycleStateChange) Set up the lifecycle state change: ALTER, CREATE, DROP, OVERWRITE, RENAME or TRUNCATE.voidsetPreviousIdentifier(OpenLineageLifecycleStateChangeDataSetFacetPreviousIdentifier previousIdentifier) Set up the previous name of the dataset in the case of a rename.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
-
OpenLineageLifecycleStateChangeDataSetFacet
public OpenLineageLifecycleStateChangeDataSetFacet()Default constructor
-
-
Method Details
-
getLifecycleStateChange
Return the lifecycle state change: ALTER, CREATE, DROP, OVERWRITE, RENAME or TRUNCATE.- Returns:
- string
-
setLifecycleStateChange
Set up the lifecycle state change: ALTER, CREATE, DROP, OVERWRITE, RENAME or TRUNCATE.- Parameters:
lifecycleStateChange- string
-
getPreviousIdentifier
Return the previous name of the dataset in the case of a rename.- Returns:
- bean
-
setPreviousIdentifier
public void setPreviousIdentifier(OpenLineageLifecycleStateChangeDataSetFacetPreviousIdentifier previousIdentifier) Set up the previous name of the dataset in the case of a rename.- Parameters:
previousIdentifier- bean
-
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
-