ResultT - the type of the result of run(org.apache.beam.sdk.Pipeline).public abstract class PipelineRunner<ResultT extends PipelineResult> extends Object
PipelineRunner can execute, translate, or otherwise process a
Pipeline.| Constructor and Description |
|---|
PipelineRunner() |
| Modifier and Type | Method and Description |
|---|---|
<OutputT extends POutput,InputT extends PInput> |
apply(PTransform<InputT,OutputT> transform,
InputT input)
Applies a transform to the given input, returning the output.
|
static PipelineRunner<? extends PipelineResult> |
fromOptions(PipelineOptions options)
Constructs a runner from the provided options.
|
abstract ResultT |
run(Pipeline pipeline)
Processes the given Pipeline, returning the results.
|
public static PipelineRunner<? extends PipelineResult> fromOptions(PipelineOptions options)
public abstract ResultT run(Pipeline pipeline)
public <OutputT extends POutput,InputT extends PInput> OutputT apply(PTransform<InputT,OutputT> transform, InputT input)
The default implementation calls PTransform.apply(input), but can be overridden to customize behavior for a particular runner.