Class Twister2TestRunner


  • public class Twister2TestRunner
    extends org.apache.beam.sdk.PipelineRunner<org.apache.beam.sdk.PipelineResult>
    A PipelineRunner that executes the operations in the pipeline by first translating them to a Twister2 Plan and then executing them either locally or on a Twister2 cluster, depending on the configuration. This is used for testing the Twister2 runner
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Twister2TestRunner fromOptions​(org.apache.beam.sdk.options.PipelineOptions options)  
      org.apache.beam.sdk.PipelineResult run​(org.apache.beam.sdk.Pipeline pipeline)  
      • Methods inherited from class org.apache.beam.sdk.PipelineRunner

        create, run, run
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fromOptions

        public static Twister2TestRunner fromOptions​(org.apache.beam.sdk.options.PipelineOptions options)
      • run

        public org.apache.beam.sdk.PipelineResult run​(org.apache.beam.sdk.Pipeline pipeline)
        Specified by:
        run in class org.apache.beam.sdk.PipelineRunner<org.apache.beam.sdk.PipelineResult>