apache_beam.runners.dataflow package¶
Subpackages¶
Submodules¶
apache_beam.runners.dataflow.dataflow_metrics module¶
DataflowRunner implementation of MetricResults. It is in charge of responding to queries of current metrics by going to the dataflow service.
apache_beam.runners.dataflow.dataflow_runner module¶
A runner implementation that submits a job for remote execution.
The runner will create a JSON description of the job graph and then submit it to the Dataflow Service for remote execution by a worker.
-
class
apache_beam.runners.dataflow.dataflow_runner.
DataflowRunner
(cache=None)[source]¶ Bases:
apache_beam.runners.runner.PipelineRunner
A runner that creates job graphs and submits them for remote execution.
Every execution of the run() method will submit an independent job for remote execution that consists of the nodes reachable from the passed in node argument or entire graph if node is None. The run() method returns after the service created the job and will not wait for the job to finish if blocking is set to False.
-
BATCH_ENVIRONMENT_MAJOR_VERSION
= '6'¶
-
STREAMING_ENVIRONMENT_MAJOR_VERSION
= '1'¶
-
static
byte_array_to_json_string
(raw_bytes)[source]¶ Implements org.apache.beam.sdk.util.StringUtils.byteArrayToJsonString.
-
static
json_string_to_byte_array
(encoded_string)[source]¶ Implements org.apache.beam.sdk.util.StringUtils.jsonStringToByteArray.
-
apache_beam.runners.dataflow.ptransform_overrides module¶
Ptransform overrides for DataflowRunner.
apache_beam.runners.dataflow.test_dataflow_runner module¶
Wrapper of Beam runners that’s built for running and verifying e2e tests.
-
class
apache_beam.runners.dataflow.test_dataflow_runner.
TestDataflowRunner
(cache=None)[source]¶ Bases:
apache_beam.runners.dataflow.dataflow_runner.DataflowRunner
Module contents¶
The DataflowRunner executes pipelines on Google Cloud Dataflow.
Anything in this package not imported here is an internal implementation detail with no backwards-compatibility guarantees.