public static interface TransformTranslator.StepTranslationContext
TransformTranslator to build a Dataflow step.| Modifier and Type | Method and Description |
|---|---|
long |
addCollectionToSingletonOutput(PCollection<?> inputValue,
PCollectionView<?> outputValue)
Adds an output to this
CollectionToSingleton Dataflow step, consuming the specified
input PValue and producing the specified output PValue. |
void |
addEncodingInput(Coder<?> value)
Sets the encoding for this Dataflow step.
|
void |
addInput(String name,
Boolean value)
Adds an input with the given name and value to this 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 this 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 this Dataflow step, coming from the specified input
PValue.
|
void |
addInput(String name,
String value)
Adds an input with the given name and value to this Dataflow step.
|
long |
addOutput(PCollection<?> value)
Adds a primitive output to this Dataflow step, producing the specified output
PValue,
including its Coder if a TypedPValue. |
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)
The input PValue must have already been produced by a step earlier in this
Pipeline. If the input value has not yet been produced yet (by a call to either
addOutput(PCollection) or
addCollectionToSingletonOutput(PCollection, PCollectionView))
this method will throw an exception.
void addInput(String name, Map<String,Object> elements)
void addInput(String name, List<? extends Map<String,Object>> elements)
long addOutput(PCollection<?> value)
PValue,
including its Coder if a TypedPValue. If the PValue is a PCollection, wraps its coder inside a WindowedValueCoder. Returns a pipeline level
unique id.long addCollectionToSingletonOutput(PCollection<?> inputValue, PCollectionView<?> outputValue)
CollectionToSingleton Dataflow step, consuming the specified
input PValue and producing the specified output PValue. This step requires
special treatment for its output encoding. Returns a pipeline level unique id.Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.