Class DataSink<T>

    • Constructor Detail

      • DataSink

        public DataSink​(DataSet<T> data,
                        org.apache.flink.api.common.io.OutputFormat<T> format,
                        org.apache.flink.api.common.typeinfo.TypeInformation<T> type)
        Deprecated.
    • Method Detail

      • getFormat

        @Internal
        public org.apache.flink.api.common.io.OutputFormat<T> getFormat()
        Deprecated.
      • getType

        @Internal
        public org.apache.flink.api.common.typeinfo.TypeInformation<T> getType()
        Deprecated.
      • getDataSet

        @Internal
        public DataSet<T> getDataSet()
        Deprecated.
      • withParameters

        public DataSink<T> withParameters​(org.apache.flink.configuration.Configuration parameters)
        Deprecated.
        Pass a configuration to the OutputFormat.
        Parameters:
        parameters - Configuration parameters
      • sortLocalOutput

        @Deprecated
        @PublicEvolving
        public DataSink<T> sortLocalOutput​(int field,
                                           org.apache.flink.api.common.operators.Order order)
        Deprecated.
        Sorts each local partition of a Tuple data set on the specified field in the specified Order before it is emitted by the output format.

        Note: Only tuple data sets can be sorted using integer field indices.

        The tuple data set can be sorted on multiple fields in different orders by chaining sortLocalOutput(int, Order) calls.

        Parameters:
        field - The Tuple field on which the data set is locally sorted.
        order - The Order in which the specified Tuple field is locally sorted.
        Returns:
        This data sink operator with specified output order.
        See Also:
        Tuple, Order
      • sortLocalOutput

        @Deprecated
        @PublicEvolving
        public DataSink<T> sortLocalOutput​(String fieldExpression,
                                           org.apache.flink.api.common.operators.Order order)
        Deprecated.
        Sorts each local partition of a data set on the field(s) specified by the field expression in the specified Order before it is emitted by the output format.

        Note: Non-composite types can only be sorted on the full element which is specified by a wildcard expression ("*" or "_").

        Data sets of composite types (Tuple or Pojo) can be sorted on multiple fields in different orders by chaining sortLocalOutput(String, Order) calls.

        Parameters:
        fieldExpression - The field expression for the field(s) on which the data set is locally sorted.
        order - The Order in which the specified field(s) are locally sorted.
        Returns:
        This data sink operator with specified output order.
        See Also:
        Order
      • getParameters

        public org.apache.flink.configuration.Configuration getParameters()
        Deprecated.
        Returns:
        Configuration for the OutputFormat.
      • translateToDataFlow

        protected org.apache.flink.api.common.operators.GenericDataSinkBase<T> translateToDataFlow​(org.apache.flink.api.common.operators.Operator<T> input)
        Deprecated.
      • getParallelism

        public int getParallelism()
        Deprecated.
        Returns the parallelism of this data sink.
        Returns:
        The parallelism of this data sink.
      • setParallelism

        public DataSink<T> setParallelism​(int parallelism)
        Deprecated.
        Sets the parallelism for this data sink. The degree must be 1 or more.
        Parameters:
        parallelism - The parallelism for this data sink. A value equal to ExecutionConfig.PARALLELISM_DEFAULT will use the system default.
        Returns:
        This data sink with set parallelism.
      • getMinResources

        @PublicEvolving
        public org.apache.flink.api.common.operators.ResourceSpec getMinResources()
        Deprecated.
        Returns the minimum resources of this data sink. If no minimum resources have been set, this returns the default resource profile.
        Returns:
        The minimum resources of this data sink.
      • getPreferredResources

        @PublicEvolving
        public org.apache.flink.api.common.operators.ResourceSpec getPreferredResources()
        Deprecated.
        Returns the preferred resources of this data sink. If no preferred resources have been set, this returns the default resource profile.
        Returns:
        The preferred resources of this data sink.