Class GenericDataSinkBase<IN>

  • All Implemented Interfaces:
    Visitable<Operator<?>>

    @Internal
    public class GenericDataSinkBase<IN>
    extends Operator<Nothing>
    Operator for nodes that act as data sinks, storing the data they receive. The way the data is stored is handled by the OutputFormat.
    • Method Detail

      • getInput

        public Operator<IN> getInput()
        Returns this operator's input operator.
        Returns:
        This operator's input.
      • 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.
      • setInputs

        @Deprecated
        public void setInputs​(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.
      • 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>... 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) to be unioned with the input.
      • addInputs

        @Deprecated
        public void addInputs​(List<? extends 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) to be unioned with the input.
      • getLocalOrder

        public Ordering getLocalOrder()
        Gets the order, in which the data sink writes its data locally. Local order means that with in each fragment of the file inside the distributed file system, the data is ordered, but not across file fragments.
        Returns:
        NONE, if the sink writes data in any order, or ASCENDING (resp. DESCENDING), if the sink writes it data with a local ascending (resp. descending) order.
      • setLocalOrder

        public void setLocalOrder​(Ordering localOrder)
        Sets the order in which the sink must write its data within each fragment in the distributed file system. For any value other then NONE, this will cause the system to perform a local sort, or try to reuse an order from a previous operation.
        Parameters:
        localOrder - The local order to write the data in.
      • getFormatWrapper

        public UserCodeWrapper<? extends OutputFormat<IN>> getFormatWrapper()
        Gets the class describing this sinks output format.
        Returns:
        The output format class.
      • accept

        public void accept​(Visitor<Operator<?>> visitor)
        Accepts the visitor and applies it this instance. This method applies the visitor in a depth-first traversal. 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)