public static interface DataflowPipelineTranslator.TranslationContext
DataflowPipelineRunner, including reading and writing the
values of PCollections and side inputs (PCollectionViews).| Modifier and Type | Method and Description |
|---|---|
void |
addCollectionToSingletonOutput(String name,
PValue inputValue,
PValue outputValue)
Adds an output with the given name to the previously added
CollectionToSingleton Dataflow step, consuming the specified
input
PValue and producing the specified output
PValue. |
void |
addEncodingInput(Coder<?> value)
Sets the encoding for the current Dataflow step.
|
void |
addInput(String name,
Boolean value)
Adds an input with the given name and value to the current
Dataflow step.
|
void |
addInput(String name,
List<? extends Map<String,Object>> elements)
Adds an input that is a list of objects.
|
void |
addInput(String name,
Long value)
Adds an input with the given name and value to the current
Dataflow step.
|
void |
addInput(String name,
Map<String,Object> elements)
Adds an input that is a dictionary of strings to objects.
|
void |
addInput(String name,
PInput value)
Adds an input with the given name to the previously added Dataflow
step, coming from the specified input PValue.
|
void |
addInput(String name,
String value)
Adds an input with the given name and value to the current
Dataflow step.
|
void |
addOutput(String name,
PValue value)
Adds an output with the given name to the previously added
Dataflow step, producing the specified output
PValue,
including its Coder if a TypedPValue. |
void |
addStep(PTransform<?,?> transform,
String type)
Adds a step to the Dataflow workflow for the given transform, with
the given Dataflow step type.
|
void |
addStep(PTransform<?,? extends PValue> transform,
com.google.api.services.dataflow.model.Step step)
Adds a pre-defined step to the Dataflow workflow.
|
void |
addValueOnlyOutput(String name,
PValue value)
Adds an output with the given name to the previously added
Dataflow step, producing the specified output
PValue,
including its Coder if a TypedPValue. |
com.google.cloud.dataflow.sdk.util.OutputReference |
asOutputReference(PValue value)
Encode a PValue reference as an output reference.
|
String |
getFullName(PTransform<?,?> transform)
Returns the full name of the currently being translated transform.
|
<InputT extends PInput> |
getInput(PTransform<InputT,?> transform)
Returns the input of the currently being translated transform.
|
<OutputT extends POutput> |
getOutput(PTransform<?,OutputT> transform)
Returns the output of the currently being translated transform.
|
DataflowPipelineOptions |
getPipelineOptions()
Returns the configured pipeline options.
|
DataflowPipelineOptions getPipelineOptions()
<InputT extends PInput> InputT getInput(PTransform<InputT,?> transform)
<OutputT extends POutput> OutputT getOutput(PTransform<?,OutputT> transform)
String getFullName(PTransform<?,?> transform)
void addStep(PTransform<?,?> transform, String type)
addInput(java.lang.String, java.lang.Boolean) and
addOutput(java.lang.String, com.google.cloud.dataflow.sdk.values.PValue).void addStep(PTransform<?,? extends PValue> transform, com.google.api.services.dataflow.model.Step step)
This is a low-level operation, when using this method it is up to the caller to ensure that names do not collide.
void addEncodingInput(Coder<?> value)
void addInput(String name, Boolean value)
void addInput(String name, String value)
void addInput(String name, Long value)
void addInput(String name, PInput value)
void addInput(String name, Map<String,Object> elements)
void addInput(String name, List<? extends Map<String,Object>> elements)
void addOutput(String name, PValue value)
PValue,
including its Coder if a TypedPValue. If the
PValue is a PCollection, wraps its coder inside
a WindowedValueCoder.void addValueOnlyOutput(String name, PValue value)
PValue,
including its Coder if a TypedPValue. If the
PValue is a PCollection, wraps its coder inside
a ValueOnlyCoder.void addCollectionToSingletonOutput(String name, PValue inputValue, PValue outputValue)
PValue and producing the specified output
PValue. This step requires special treatment for its
output encoding.com.google.cloud.dataflow.sdk.util.OutputReference asOutputReference(PValue value)