Class OpenLineageGcpDataprocRunFacet


public class OpenLineageGcpDataprocRunFacet extends OpenLineageRunFacet
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 Details

    • OpenLineageGcpDataprocRunFacet

      public OpenLineageGcpDataprocRunFacet()
      Default constructor
  • Method Details

    • getAppId

      public String getAppId()
      Return the application ID set by the resource manager. For Spark jobs it is set in the Spark configuration.
      Returns:
      string
    • setAppId

      public void setAppId(String appId)
      Set up the application ID set by the resource manager. For Spark jobs it is set in the Spark configuration.
      Parameters:
      appId - string
    • getAppName

      public String getAppName()
      Return the application name, provided by the user or defaulted by the resource manager.
      Returns:
      string
    • setAppName

      public void setAppName(String appName)
      Set up the application name, provided by the user or defaulted by the resource manager.
      Parameters:
      appName - string
    • getBatchId

      public String getBatchId()
      Return the resource id of the batch. Populated only for Dataproc serverless batches.
      Returns:
      string
    • setBatchId

      public void setBatchId(String batchId)
      Set up the resource id of the batch. Populated only for Dataproc serverless batches.
      Parameters:
      batchId - string
    • getBatchUuid

      public String getBatchUuid()
      Return the UUID generated by the service when it created the batch. Populated only for Dataproc serverless batches.
      Returns:
      string
    • setBatchUuid

      public void setBatchUuid(String batchUuid)
      Set up the UUID generated by the service when it created the batch. Populated only for Dataproc serverless batches.
      Parameters:
      batchUuid - string
    • getClusterName

      public String getClusterName()
      Return the cluster name, unique within a GCP project. Populated only for Dataproc GCE workloads.
      Returns:
      string
    • setClusterName

      public void setClusterName(String clusterName)
      Set up the cluster name, unique within a GCP project. Populated only for Dataproc GCE workloads.
      Parameters:
      clusterName - string
    • getClusterUuid

      public String getClusterUuid()
      Return the UUID generated by the service at the time of cluster creation. Populated only for Dataproc GCE workloads.
      Returns:
      string
    • setClusterUuid

      public void setClusterUuid(String clusterUuid)
      Set up the UUID generated by the service at the time of cluster creation. Populated only for Dataproc GCE workloads.
      Parameters:
      clusterUuid - string
    • getJobId

      public String getJobId()
      Return the job ID. Populated only for Dataproc GCE workloads.
      Returns:
      string
    • setJobId

      public void setJobId(String jobId)
      Set up the job ID. Populated only for Dataproc GCE workloads.
      Parameters:
      jobId - string
    • getJobUuid

      public String getJobUuid()
      Return the UUID that uniquely identifies the job within the project. Populated only for Dataproc GCE workloads.
      Returns:
      string
    • setJobUuid

      public void setJobUuid(String jobUuid)
      Set up the UUID that uniquely identifies the job within the project. Populated only for Dataproc GCE workloads.
      Parameters:
      jobUuid - string
    • getProjectId

      public String getProjectId()
      Return the GCP project ID that the resource belongs to.
      Returns:
      string
    • setProjectId

      public void setProjectId(String projectId)
      Set up the GCP project ID that the resource belongs to.
      Parameters:
      projectId - string
    • getQueryNodeName

      public 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

      public void setQueryNodeName(String queryNodeName)
      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

      public String getJobType()
      Return the whether the process is a job (on a Dataproc cluster), a batch or a session.
      Returns:
      string
    • setJobType

      public void setJobType(String jobType)
      Set up the whether the process is a job (on a Dataproc cluster), a batch or a session.
      Parameters:
      jobType - string
    • getSessionId

      public String getSessionId()
      Return the resource id of the session. Populated only for Dataproc serverless interactive sessions.
      Returns:
      string
    • setSessionId

      public void setSessionId(String sessionId)
      Set up the resource id of the session. Populated only for Dataproc serverless interactive sessions.
      Parameters:
      sessionId - string
    • getSessionUuid

      public String getSessionUuid()
      Return the UUID generated by the service when it created the session. Populated only for Dataproc serverless interactive sessions.
      Returns:
      string
    • setSessionUuid

      public void setSessionUuid(String sessionUuid)
      Set up the UUID generated by the service when it created the session. Populated only for Dataproc serverless interactive sessions.
      Parameters:
      sessionUuid - string
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class OpenLineageRunFacet
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class OpenLineageFacet
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class OpenLineageFacet
      Returns:
      int