Class SparkContextOptions.EmptyListenersList

java.lang.Object
org.apache.beam.runners.spark.SparkContextOptions.EmptyListenersList
All Implemented Interfaces:
DefaultValueFactory<List<org.apache.spark.streaming.api.java.JavaStreamingListener>>
Enclosing interface:
SparkContextOptions

public static class SparkContextOptions.EmptyListenersList extends Object implements DefaultValueFactory<List<org.apache.spark.streaming.api.java.JavaStreamingListener>>
Returns an empty list, to avoid handling null.
  • Constructor Details

    • EmptyListenersList

      public EmptyListenersList()
  • Method Details

    • create

      public List<org.apache.spark.streaming.api.java.JavaStreamingListener> create(PipelineOptions options)
      Description copied from interface: DefaultValueFactory
      Creates a default value for a getter marked with Default.InstanceFactory.
      Specified by:
      create in interface DefaultValueFactory<List<org.apache.spark.streaming.api.java.JavaStreamingListener>>
      Parameters:
      options - The current pipeline options.
      Returns:
      The default value to be used for the annotated getter.