Package org.apache.beam.sdk
Class PipelineRunner<ResultT extends PipelineResult>
java.lang.Object
org.apache.beam.sdk.PipelineRunner<ResultT>
- Type Parameters:
ResultT- the type of the result ofrun(org.apache.beam.sdk.Pipeline), often a handle to a running job.
- Direct Known Subclasses:
CrashingRunner,DataflowRunner,DirectRunner,FlinkRunner,JetRunner,PortableRunner,PrismRunner,SparkRunner,SparkRunnerDebugger,SparkStructuredStreamingRunner,TestDataflowRunner,TestFlinkRunner,TestPortableRunner,TestPrismRunner,TestSparkRunner,TestUniversalRunner,Twister2Runner,Twister2TestRunner
A
PipelineRunner runs a Pipeline.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PipelineRunner<? extends PipelineResult> create()Creates a runner from the default appPipelineOptions.static PipelineRunner<? extends PipelineResult> fromOptions(PipelineOptions options) Constructs a runner from the providedPipelineOptions.abstract ResultTProcesses the givenPipeline, potentially asynchronously, returning a runner-specific type of result.run(PTransform<PBegin, ?> pTransform) OverloadedPTransformrunner that runs with the default appPipelineOptions.run(PTransform<PBegin, ?> pTransform, PipelineOptions options) Creates aPipelineout of a singlePTransformstep, and executes it.
-
Constructor Details
-
PipelineRunner
public PipelineRunner()
-
-
Method Details
-
fromOptions
Constructs a runner from the providedPipelineOptions.- Returns:
- The newly created runner.
-
create
Creates a runner from the default appPipelineOptions.- Returns:
- The newly created runner.
-
run
Processes the givenPipeline, potentially asynchronously, returning a runner-specific type of result. -
run
Creates aPipelineout of a singlePTransformstep, and executes it. -
run
OverloadedPTransformrunner that runs with the default appPipelineOptions.
-