public class DirectRunner extends PipelineRunner<DirectRunner.DirectPipelineResult>
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.
Modifier and Type | Class and Description |
---|---|
static class |
DirectRunner.DirectPipelineResult
The result of running a
Pipeline with the DirectRunner . |
Modifier and Type | Method and Description |
---|---|
static DirectRunner |
fromOptions(PipelineOptions options)
Construct a
DirectRunner from the provided options. |
DirectRunner.DirectPipelineResult |
run(Pipeline pipeline)
Processes the given
Pipeline , potentially asynchronously, returning a runner-specific
type of result. |
create, run, run
public static DirectRunner fromOptions(PipelineOptions options)
DirectRunner
from the provided options.public DirectRunner.DirectPipelineResult run(Pipeline pipeline)
PipelineRunner
Pipeline
, potentially asynchronously, returning a runner-specific
type of result.run
in class PipelineRunner<DirectRunner.DirectPipelineResult>