Package org.apache.beam.runners.direct
Class DirectRunner
java.lang.Object
org.apache.beam.sdk.PipelineRunner<DirectRunner.DirectPipelineResult>
org.apache.beam.runners.direct.DirectRunner
A
PipelineRunner that executes a Pipeline within the process that constructed the
Pipeline.
The DirectRunner is suitable for running a Pipeline on small scale, example,
and test data, and should be used for ensuring that processing logic is correct. It also is
appropriate for executing unit tests and performs additional work to ensure that behavior
contained within a Pipeline does not break assumptions within the Beam model, to improve
the ability to execute a Pipeline at scale on a distributed backend.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe result of running aPipelinewith theDirectRunner. -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectRunnerfromOptions(PipelineOptions options) Construct aDirectRunnerfrom the provided options.Processes the givenPipeline, potentially asynchronously, returning a runner-specific type of result.Methods inherited from class org.apache.beam.sdk.PipelineRunner
create, run, run
-
Method Details
-
fromOptions
Construct aDirectRunnerfrom the provided options. -
run
Description copied from class:PipelineRunnerProcesses the givenPipeline, potentially asynchronously, returning a runner-specific type of result.- Specified by:
runin classPipelineRunner<DirectRunner.DirectPipelineResult>
-