Package org.apache.beam.runners.flink
Class FlinkRunner
- java.lang.Object
-
- org.apache.beam.sdk.PipelineRunner<org.apache.beam.sdk.PipelineResult>
-
- org.apache.beam.runners.flink.FlinkRunner
-
public class FlinkRunner extends org.apache.beam.sdk.PipelineRunner<org.apache.beam.sdk.PipelineResult>APipelineRunnerthat executes the operations in the pipeline by first translating them to a Flink Plan and then executing them either locally or on a Flink cluster, depending on the configuration.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlinkRunner(FlinkPipelineOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlinkRunnerfromOptions(org.apache.beam.sdk.options.PipelineOptions options)Construct a runner from the provided options.FlinkPipelineOptionsgetPipelineOptions()For testing.org.apache.beam.sdk.PipelineResultrun(org.apache.beam.sdk.Pipeline pipeline)java.lang.StringtoString()
-
-
-
Constructor Detail
-
FlinkRunner
protected FlinkRunner(FlinkPipelineOptions options)
-
-
Method Detail
-
fromOptions
public static FlinkRunner fromOptions(org.apache.beam.sdk.options.PipelineOptions options)
Construct a runner from the provided options.- Parameters:
options- Properties which configure the runner.- Returns:
- The newly created runner.
-
run
public org.apache.beam.sdk.PipelineResult run(org.apache.beam.sdk.Pipeline pipeline)
- Specified by:
runin classorg.apache.beam.sdk.PipelineRunner<org.apache.beam.sdk.PipelineResult>
-
getPipelineOptions
public FlinkPipelineOptions getPipelineOptions()
For testing.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-