ResultT - the type of the result of run(org.apache.beam.sdk.Pipeline), often a handle to a running job.public abstract class PipelineRunner<ResultT extends PipelineResult>
extends java.lang.Object
PipelineRunner runs a Pipeline.| Constructor and Description |
|---|
PipelineRunner() |
| Modifier and Type | Method and Description |
|---|---|
static PipelineRunner<? extends PipelineResult> |
create()
Creates a runner from the default app
PipelineOptions. |
static PipelineRunner<? extends PipelineResult> |
fromOptions(PipelineOptions options)
Constructs a runner from the provided
PipelineOptions. |
abstract ResultT |
run(Pipeline pipeline)
Processes the given
Pipeline, potentially asynchronously, returning a runner-specific
type of result. |
ResultT |
run(PTransform<PBegin,?> pTransform)
Overloaded
PTransform runner that runs with the default app PipelineOptions. |
ResultT |
run(PTransform<PBegin,?> pTransform,
PipelineOptions options)
Creates a
Pipeline out of a single PTransform step, and executes it. |
public static PipelineRunner<? extends PipelineResult> fromOptions(PipelineOptions options)
PipelineOptions.public static PipelineRunner<? extends PipelineResult> create()
PipelineOptions.public abstract ResultT run(Pipeline pipeline)
Pipeline, potentially asynchronously, returning a runner-specific
type of result.public ResultT run(PTransform<PBegin,?> pTransform, PipelineOptions options)
Pipeline out of a single PTransform step, and executes it.public ResultT run(PTransform<PBegin,?> pTransform)
PTransform runner that runs with the default app PipelineOptions.