Class OutputDatasetWithDelegate

java.lang.Object
io.openlineage.spark.shade.extension.v1.OutputDatasetWithDelegate
All Implemented Interfaces:
OutputDatasetWithFacets

public class OutputDatasetWithDelegate extends Object implements OutputDatasetWithFacets
Represents an output dataset associated with a node in a LogicalPlan. This class allows for the extraction of metadata (facets) from output datasets.

It implements both OutputDatasetWithFacets and DatasetWithDelegate, providing methods to retrieve dataset facets, output dataset facets, and the node from which the dataset is extracted.

  • Constructor Summary

    Constructors
    Constructor
    Description
    OutputDatasetWithDelegate(Object node, io.openlineage.client.OpenLineage.DatasetFacetsBuilder datasetFacetsBuilder, io.openlineage.client.OpenLineage.OutputDatasetOutputFacetsBuilder outputFacetsBuilder)
    Constructs a new OutputDatasetWithDelegate.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    io.openlineage.client.OpenLineage.DatasetFacetsBuilder
    Returns the OpenLineage.DatasetFacetsBuilder for building dataset facets.
    Returns the node in the LogicalPlan from which the output dataset is extracted.
    io.openlineage.client.OpenLineage.OutputDatasetOutputFacetsBuilder
    Returns the OpenLineage.OutputDatasetOutputFacetsBuilder for building output dataset facets.
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OutputDatasetWithDelegate

      public OutputDatasetWithDelegate(Object node, io.openlineage.client.OpenLineage.DatasetFacetsBuilder datasetFacetsBuilder, io.openlineage.client.OpenLineage.OutputDatasetOutputFacetsBuilder outputFacetsBuilder)
      Constructs a new OutputDatasetWithDelegate.
      Parameters:
      node - the node in the LogicalPlan from which the output dataset is extracted
      datasetFacetsBuilder - a builder for the dataset facets
      outputFacetsBuilder - a builder for the output dataset output facets
  • Method Details

    • getDatasetFacetsBuilder

      public io.openlineage.client.OpenLineage.DatasetFacetsBuilder getDatasetFacetsBuilder()
      Returns the OpenLineage.DatasetFacetsBuilder for building dataset facets.

      Dataset facets include general metadata associated with the dataset.

      Specified by:
      getDatasetFacetsBuilder in interface OutputDatasetWithFacets
      Returns:
      the dataset facets builder
    • getOutputFacetsBuilder

      public io.openlineage.client.OpenLineage.OutputDatasetOutputFacetsBuilder getOutputFacetsBuilder()
      Returns the OpenLineage.OutputDatasetOutputFacetsBuilder for building output dataset facets.

      Output dataset facets include specific metadata related to the output datasets.

      Specified by:
      getOutputFacetsBuilder in interface OutputDatasetWithFacets
      Returns:
      the output dataset facets builder
    • getNode

      public Object getNode()
      Returns the node in the LogicalPlan from which the output dataset is extracted.
      Returns:
      the LogicalPlan node
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object