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 class
The result of running aPipeline
with theDirectRunner
. -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectRunner
fromOptions
(PipelineOptions options) Construct aDirectRunner
from 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 aDirectRunner
from the provided options. -
run
Description copied from class:PipelineRunner
Processes the givenPipeline
, potentially asynchronously, returning a runner-specific type of result.- Specified by:
run
in classPipelineRunner<DirectRunner.DirectPipelineResult>
-