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(java.lang.String name,
java.lang.Boolean value)
Adds an input with the given name and value to this Dataflow step.
|
void |
addInput(java.lang.String name,
java.util.List<? extends java.util.Map<java.lang.String,java.lang.Object>> elements)
Adds an input that is a list of objects.
|
void |
addInput(java.lang.String name,
java.lang.Long value)
Adds an input with the given name and value to this Dataflow step.
|
void |
addInput(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> elements)
Adds an input that is a dictionary of strings to objects.
|
void |
addInput(java.lang.String name,
PInput value)
Adds an input with the given name to this Dataflow step, coming from the specified input
PValue.
|
void |
addInput(java.lang.String name,
java.lang.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(java.lang.String name,
java.lang.Boolean value)
void addInput(java.lang.String name,
java.lang.String value)
void addInput(java.lang.String name,
java.lang.Long value)
void addInput(java.lang.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(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> elements)
void addInput(java.lang.String name,
java.util.List<? extends java.util.Map<java.lang.String,java.lang.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.