Package org.apache.beam.runners.dataflow
Interface TransformTranslator.StepTranslationContext
-
- Enclosing interface:
- TransformTranslator<TransformT extends org.apache.beam.sdk.transforms.PTransform>
public static interface TransformTranslator.StepTranslationContextThe interface for aTransformTranslatorto build a Dataflow step.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCollectionToSingletonOutput(org.apache.beam.sdk.values.PCollection<?> inputValue, java.lang.String outputName, org.apache.beam.sdk.values.PCollectionView<?> outputValue)Adds an output to thisCollectionToSingletonDataflow step, consuming the specified inputPValueand producing the specified outputPValue.voidaddEncodingInput(org.apache.beam.sdk.coders.Coder<?> value)Sets the encoding for this Dataflow step.voidaddInput(java.lang.String name, java.lang.Boolean value)Adds an input with the given name and value to this Dataflow step.voidaddInput(java.lang.String name, java.lang.Long value)Adds an input with the given name and value to this Dataflow step.voidaddInput(java.lang.String name, java.lang.String value)Adds an input with the given name and value to this Dataflow step.voidaddInput(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.voidaddInput(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.voidaddInput(java.lang.String name, org.apache.beam.sdk.values.PInput value)Adds an input with the given name to this Dataflow step, coming from the specified input PValue.voidaddOutput(java.lang.String name, org.apache.beam.sdk.values.PCollection<?> value)Adds a primitive output to this Dataflow step with the given name as the local output name, producing the specified outputPValue, including itsCoderif aTypedPValue.
-
-
-
Method Detail
-
addEncodingInput
void addEncodingInput(org.apache.beam.sdk.coders.Coder<?> value)
Sets the encoding for this Dataflow step.
-
addInput
void addInput(java.lang.String name, java.lang.Boolean value)Adds an input with the given name and value to this Dataflow step.
-
addInput
void addInput(java.lang.String name, java.lang.String value)Adds an input with the given name and value to this Dataflow step.
-
addInput
void addInput(java.lang.String name, java.lang.Long value)Adds an input with the given name and value to this Dataflow step.
-
addInput
void addInput(java.lang.String name, org.apache.beam.sdk.values.PInput value)Adds an input with the given name to this Dataflow step, coming from the specified input PValue.The input
PValuemust have already been produced by a step earlier in thisPipeline. If the input value has not yet been produced yet (by a call to eitheraddOutput(java.lang.String, org.apache.beam.sdk.values.PCollection<?>)oraddCollectionToSingletonOutput(org.apache.beam.sdk.values.PCollection<?>, java.lang.String, org.apache.beam.sdk.values.PCollectionView<?>)) this method will throw an exception.
-
addInput
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.
-
addInput
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.
-
addOutput
void addOutput(java.lang.String name, org.apache.beam.sdk.values.PCollection<?> value)Adds a primitive output to this Dataflow step with the given name as the local output name, producing the specified outputPValue, including itsCoderif aTypedPValue. If thePValueis aPCollection, wraps its coder inside aWindowedValueCoder.
-
addCollectionToSingletonOutput
void addCollectionToSingletonOutput(org.apache.beam.sdk.values.PCollection<?> inputValue, java.lang.String outputName, org.apache.beam.sdk.values.PCollectionView<?> outputValue)Adds an output to thisCollectionToSingletonDataflow step, consuming the specified inputPValueand producing the specified outputPValue. This step requires special treatment for its output encoding. Returns a pipeline level unique id.
-
-