Class SingleInputOperator<IN,​OUT,​FT extends Function>

    • Field Detail

      • input

        protected Operator<IN> input
        The input which produces the data consumed by this operator.
    • Constructor Detail

      • SingleInputOperator

        protected SingleInputOperator​(UserCodeWrapper<FT> stub,
                                      UnaryOperatorInformation<IN,​OUT> operatorInfo,
                                      int[] keyPositions,
                                      String name)
        Creates a new abstract single-input operator with the given name wrapping the given user function.
        Parameters:
        stub - The object containing the user function.
        keyPositions - The field positions of the input records that act as keys.
        name - The given name for the operator, used in plans, logs and progress messages.
      • SingleInputOperator

        protected SingleInputOperator​(UserCodeWrapper<FT> stub,
                                      UnaryOperatorInformation<IN,​OUT> operatorInfo,
                                      String name)
        Creates a new abstract single-input operator with the given name wrapping the given user function. This constructor is specialized only for operators that require no keys for their processing.
        Parameters:
        stub - The object containing the user function.
        name - The given name for the operator, used in plans, logs and progress messages.
    • Method Detail

      • getInput

        public Operator<IN> getInput()
        Returns the input operator or data source, or null, if none is set.
        Returns:
        This operator's input.
      • clearInputs

        public void clearInputs()
        Removes all inputs.
      • setInput

        public void setInput​(Operator<IN> input)
        Sets the given operator as the input to this operator.
        Parameters:
        input - The operator to use as the input.
      • setInput

        @Deprecated
        public void setInput​(Operator<IN>... input)
        Deprecated.
        This method will be removed in future versions. Use the Union operator instead.
        Sets the input to the union of the given operators.
        Parameters:
        input - The operator(s) that form the input.
      • setInputs

        @Deprecated
        public void setInputs​(List<Operator<IN>> inputs)
        Deprecated.
        This method will be removed in future versions. Use the Union operator instead.
        Sets the input to the union of the given operators.
        Parameters:
        inputs - The operator(s) that form the input.
      • addInput

        @Deprecated
        public void addInput​(Operator<IN>... input)
        Deprecated.
        This method will be removed in future versions. Use the Union operator instead.
        Adds to the input the union of the given operators.
        Parameters:
        input - The operator(s) that form the input.
      • addInput

        @Deprecated
        public void addInput​(List<Operator<IN>> inputs)
        Deprecated.
        This method will be removed in future versions. Use the Union operator instead.
        Adds to the input the union of the given operators.
        Parameters:
        inputs - The operator(s) that form the input.
      • getKeyColumns

        public int[] getKeyColumns​(int inputNum)
        Description copied from class: AbstractUdfOperator
        Gets the column numbers of the key fields in the input records for the given input.
        Specified by:
        getKeyColumns in class AbstractUdfOperator<OUT,​FT extends Function>
        Returns:
        The column numbers of the key fields.
      • accept

        public void accept​(Visitor<Operator<?>> visitor)
        Accepts the visitor and applies it this instance. The visitors pre-visit method is called and, if returning true, the visitor is recursively applied on the single input. After the recursion returned, the post-visit method is called.
        Parameters:
        visitor - The visitor.
        See Also:
        Visitable.accept(org.apache.flink.util.Visitor)