public class DataflowPipelineTranslator
extends java.lang.Object
DataflowPipelineTranslator
knows how to translate Pipeline
objects
into Cloud Dataflow Service API Job
s.Modifier and Type | Class and Description |
---|---|
static class |
DataflowPipelineTranslator.JobSpecification
The result of a job translation.
|
Modifier and Type | Method and Description |
---|---|
static DataflowPipelineTranslator |
fromOptions(DataflowPipelineOptions options)
Constructs a translator from the provided options.
|
<TransformT extends PTransform> |
getTransformTranslator(java.lang.Class<TransformT> transformClass)
Returns the
TransformTranslator to use for instances of the
specified PTransform class, or null if none registered. |
static java.lang.String |
jobToString(com.google.api.services.dataflow.model.Job job)
Renders a
Job as a string. |
static <TransformT extends PTransform> |
registerTransformTranslator(java.lang.Class<TransformT> transformClass,
org.apache.beam.runners.dataflow.TransformTranslator<? extends TransformT> transformTranslator)
Records that instances of the specified PTransform class
should be translated by default by the corresponding
TransformTranslator . |
java.lang.String |
toString() |
DataflowPipelineTranslator.JobSpecification |
translate(Pipeline pipeline,
DataflowRunner runner,
java.util.List<com.google.api.services.dataflow.model.DataflowPackage> packages)
Translates a
Pipeline into a JobSpecification . |
public static DataflowPipelineTranslator fromOptions(DataflowPipelineOptions options)
options
- Properties that configure the translator.public DataflowPipelineTranslator.JobSpecification translate(Pipeline pipeline, DataflowRunner runner, java.util.List<com.google.api.services.dataflow.model.DataflowPackage> packages)
Pipeline
into a JobSpecification
.public static java.lang.String jobToString(com.google.api.services.dataflow.model.Job job)
Job
as a string.public static <TransformT extends PTransform> void registerTransformTranslator(java.lang.Class<TransformT> transformClass, org.apache.beam.runners.dataflow.TransformTranslator<? extends TransformT> transformTranslator)
TransformTranslator
.public <TransformT extends PTransform> org.apache.beam.runners.dataflow.TransformTranslator<TransformT> getTransformTranslator(java.lang.Class<TransformT> transformClass)
TransformTranslator
to use for instances of the
specified PTransform class, or null if none registered.public java.lang.String toString()
toString
in class java.lang.Object