Class OpenLineageGcpDataprocRunFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageRunFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageGcpDataprocRunFacet
This class represents the gcp_dataproc run facet registered by Google Cloud Dataproc. It identifies the Dataproc job, batch or session that executed the run.
It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-0/GcpDataprocRunFacet.json#/$defs/GcpDataprocRunFacet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.getAppId()Return the application ID set by the resource manager.Return the application name, provided by the user or defaulted by the resource manager.Return the resource id of the batch.Return the UUID generated by the service when it created the batch.Return the cluster name, unique within a GCP project.Return the UUID generated by the service at the time of cluster creation.getJobId()Return the job ID.Return the whether the process is a job (on a Dataproc cluster), a batch or a session.Return the UUID that uniquely identifies the job within the project.Return the GCP project ID that the resource belongs to.Return the name of the query node in the executed Spark plan, often used to describe the command being executed.Return the resource id of the session.Return the UUID generated by the service when it created the session.inthashCode()Return hash code based on properties.voidSet up the application ID set by the resource manager.voidsetAppName(String appName) Set up the application name, provided by the user or defaulted by the resource manager.voidsetBatchId(String batchId) Set up the resource id of the batch.voidsetBatchUuid(String batchUuid) Set up the UUID generated by the service when it created the batch.voidsetClusterName(String clusterName) Set up the cluster name, unique within a GCP project.voidsetClusterUuid(String clusterUuid) Set up the UUID generated by the service at the time of cluster creation.voidSet up the job ID.voidsetJobType(String jobType) Set up the whether the process is a job (on a Dataproc cluster), a batch or a session.voidsetJobUuid(String jobUuid) Set up the UUID that uniquely identifies the job within the project.voidsetProjectId(String projectId) Set up the GCP project ID that the resource belongs to.voidsetQueryNodeName(String queryNodeName) Set up the name of the query node in the executed Spark plan, often used to describe the command being executed.voidsetSessionId(String sessionId) Set up the resource id of the session.voidsetSessionUuid(String sessionUuid) Set up the UUID generated by the service when it created the session.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
-
OpenLineageGcpDataprocRunFacet
public OpenLineageGcpDataprocRunFacet()Default constructor
-
-
Method Details
-
getAppId
Return the application ID set by the resource manager. For Spark jobs it is set in the Spark configuration.- Returns:
- string
-
setAppId
Set up the application ID set by the resource manager. For Spark jobs it is set in the Spark configuration.- Parameters:
appId- string
-
getAppName
Return the application name, provided by the user or defaulted by the resource manager.- Returns:
- string
-
setAppName
Set up the application name, provided by the user or defaulted by the resource manager.- Parameters:
appName- string
-
getBatchId
Return the resource id of the batch. Populated only for Dataproc serverless batches.- Returns:
- string
-
setBatchId
Set up the resource id of the batch. Populated only for Dataproc serverless batches.- Parameters:
batchId- string
-
getBatchUuid
Return the UUID generated by the service when it created the batch. Populated only for Dataproc serverless batches.- Returns:
- string
-
setBatchUuid
Set up the UUID generated by the service when it created the batch. Populated only for Dataproc serverless batches.- Parameters:
batchUuid- string
-
getClusterName
Return the cluster name, unique within a GCP project. Populated only for Dataproc GCE workloads.- Returns:
- string
-
setClusterName
Set up the cluster name, unique within a GCP project. Populated only for Dataproc GCE workloads.- Parameters:
clusterName- string
-
getClusterUuid
Return the UUID generated by the service at the time of cluster creation. Populated only for Dataproc GCE workloads.- Returns:
- string
-
setClusterUuid
Set up the UUID generated by the service at the time of cluster creation. Populated only for Dataproc GCE workloads.- Parameters:
clusterUuid- string
-
getJobId
Return the job ID. Populated only for Dataproc GCE workloads.- Returns:
- string
-
setJobId
Set up the job ID. Populated only for Dataproc GCE workloads.- Parameters:
jobId- string
-
getJobUuid
Return the UUID that uniquely identifies the job within the project. Populated only for Dataproc GCE workloads.- Returns:
- string
-
setJobUuid
Set up the UUID that uniquely identifies the job within the project. Populated only for Dataproc GCE workloads.- Parameters:
jobUuid- string
-
getProjectId
Return the GCP project ID that the resource belongs to.- Returns:
- string
-
setProjectId
Set up the GCP project ID that the resource belongs to.- Parameters:
projectId- string
-
getQueryNodeName
Return the name of the query node in the executed Spark plan, often used to describe the command being executed.- Returns:
- string
-
setQueryNodeName
Set up the name of the query node in the executed Spark plan, often used to describe the command being executed.- Parameters:
queryNodeName- string
-
getJobType
Return the whether the process is a job (on a Dataproc cluster), a batch or a session.- Returns:
- string
-
setJobType
Set up the whether the process is a job (on a Dataproc cluster), a batch or a session.- Parameters:
jobType- string
-
getSessionId
Return the resource id of the session. Populated only for Dataproc serverless interactive sessions.- Returns:
- string
-
setSessionId
Set up the resource id of the session. Populated only for Dataproc serverless interactive sessions.- Parameters:
sessionId- string
-
getSessionUuid
Return the UUID generated by the service when it created the session. Populated only for Dataproc serverless interactive sessions.- Returns:
- string
-
setSessionUuid
Set up the UUID generated by the service when it created the session. Populated only for Dataproc serverless interactive sessions.- Parameters:
sessionUuid- string
-
toString
Standard toString method.- Overrides:
toStringin classOpenLineageRunFacet- 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
-