Class DatasetChannel.Instance

All Implemented Interfaces:
ChannelInstance, ExecutionResource, ReferenceCountable
Enclosing class:
DatasetChannel

public class DatasetChannel.Instance extends AbstractChannelInstance
  • Constructor Details

  • Method Details

    • accept

      public void accept(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataset, SparkExecutor sparkExecutor)
      Store a Dataset in this channel and optionally measure its cardinality.
      Parameters:
      dataset - the Dataset to store
      sparkExecutor - the SparkExecutor handling this channel
    • provideDataset

      public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> provideDataset()
      Provide the stored Dataset.
      Returns:
      the stored Dataset
    • doDispose

      protected void doDispose()
      Description copied from class: ExecutionResourceTemplate
      Performs the actual disposing work of this instance.
      Specified by:
      doDispose in class ExecutionResourceTemplate
    • getChannel

      public DatasetChannel getChannel()
      Returns:
      the Channel that is implemented by this instance