Interface TransformTranslator.StepTranslationContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addCollectionToSingletonOutput​(org.apache.beam.sdk.values.PCollection<?> inputValue, java.lang.String outputName, org.apache.beam.sdk.values.PCollectionView<?> outputValue)
      Adds an output to this CollectionToSingleton Dataflow step, consuming the specified input PValue and producing the specified output PValue.
      void addEncodingInput​(org.apache.beam.sdk.coders.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.lang.Long value)
      Adds an input with the given name and value to this Dataflow step.
      void addInput​(java.lang.String name, java.lang.String 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.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, org.apache.beam.sdk.values.PInput value)
      Adds an input with the given name to this Dataflow step, coming from the specified input PValue.
      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 output PValue, including its Coder if a TypedPValue.
    • 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,
                      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 output PValue, including its Coder if a TypedPValue. If the PValue is a PCollection, wraps its coder inside a WindowedValueCoder.
      • 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 this 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.