Class DataSink<T>
- java.lang.Object
-
- org.apache.flink.api.java.operators.DataSink<T>
-
- Type Parameters:
T-
@Deprecated @Public public class DataSink<T> extends Object
Deprecated.All Flink DataSet APIs are deprecated since Flink 1.18 and will be removed in a future Flink major version. You can still build your application in DataSet, but you should move to either the DataStream and/or Table API.An operation that allows storing data results.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DataSet<T>getDataSet()Deprecated.org.apache.flink.api.common.io.OutputFormat<T>getFormat()Deprecated.org.apache.flink.api.common.operators.ResourceSpecgetMinResources()Deprecated.Returns the minimum resources of this data sink.intgetParallelism()Deprecated.Returns the parallelism of this data sink.org.apache.flink.configuration.ConfigurationgetParameters()Deprecated.org.apache.flink.api.common.operators.ResourceSpecgetPreferredResources()Deprecated.Returns the preferred resources of this data sink.org.apache.flink.api.common.typeinfo.TypeInformation<T>getType()Deprecated.DataSink<T>name(String name)Deprecated.DataSink<T>setParallelism(int parallelism)Deprecated.Sets the parallelism for this data sink.DataSink<T>sortLocalOutput(int field, org.apache.flink.api.common.operators.Order order)Deprecated.UseDataSet.sortPartition(int, Order)insteadDataSink<T>sortLocalOutput(String fieldExpression, org.apache.flink.api.common.operators.Order order)Deprecated.UseDataSet.sortPartition(String, Order)insteadStringtoString()Deprecated.protected org.apache.flink.api.common.operators.GenericDataSinkBase<T>translateToDataFlow(org.apache.flink.api.common.operators.Operator<T> input)Deprecated.DataSink<T>withParameters(org.apache.flink.configuration.Configuration parameters)Deprecated.Pass a configuration to the OutputFormat.
-
-
-
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.
-
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.UseDataSet.sortPartition(int, Order)insteadSorts each local partition of aTupledata set on the specified field in the specifiedOrderbefore 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.UseDataSet.sortPartition(String, Order)insteadSorts each local partition of a data set on the field(s) specified by the field expression in the specifiedOrderbefore 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 toExecutionConfig.PARALLELISM_DEFAULTwill 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.
-
-