Class DataSource<OUT>
- java.lang.Object
-
- org.apache.flink.api.java.DataSet<OUT>
-
- org.apache.flink.api.java.operators.Operator<OUT,DataSource<OUT>>
-
- org.apache.flink.api.java.operators.DataSource<OUT>
-
- Type Parameters:
OUT- The type of the elements produced by this data source.
@Deprecated @Public public class DataSource<OUT> extends Operator<OUT,DataSource<OUT>>
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 creates a new data set (data source). The operation acts as the data set on which to apply further transformations. It encapsulates additional configuration parameters, to customize the execution.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.api.java.operators.Operator
minResources, name, parallelism, preferredResources
-
-
Constructor Summary
Constructors Constructor Description DataSource(ExecutionEnvironment context, org.apache.flink.api.common.io.InputFormat<OUT,?> inputFormat, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> type, String dataSourceLocationName)Deprecated.Creates a new data source.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.flink.api.common.io.InputFormat<OUT,?>getInputFormat()Deprecated.Gets the input format that is executed by this data source.org.apache.flink.configuration.ConfigurationgetParameters()Deprecated.SplitDataProperties<OUT>getSplitDataProperties()Deprecated.Returns theSplitDataPropertiesfor theInputSplits of this DataSource for configurations.protected org.apache.flink.api.common.operators.GenericDataSourceBase<OUT,?>translateToDataFlow()Deprecated.DataSource<OUT>withParameters(org.apache.flink.configuration.Configuration parameters)Deprecated.Pass a configuration to the InputFormat.-
Methods inherited from class org.apache.flink.api.java.operators.Operator
getMinResources, getName, getParallelism, getPreferredResources, getResultType, name, setParallelism
-
Methods inherited from class org.apache.flink.api.java.DataSet
aggregate, checkSameExecutionContext, clean, coGroup, collect, combineGroup, count, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, distinct, fillInType, filter, first, flatMap, fullOuterJoin, fullOuterJoin, getExecutionEnvironment, getType, groupBy, groupBy, groupBy, iterate, iterateDelta, join, join, joinWithHuge, joinWithTiny, leftOuterJoin, leftOuterJoin, map, mapPartition, max, maxBy, min, minBy, output, partitionByHash, partitionByHash, partitionByHash, partitionByRange, partitionByRange, partitionByRange, partitionCustom, partitionCustom, partitionCustom, print, print, printOnTaskManager, printToErr, printToErr, project, rebalance, reduce, reduceGroup, rightOuterJoin, rightOuterJoin, runOperation, sortPartition, sortPartition, sortPartition, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsCsv, writeAsFormattedText, writeAsFormattedText, writeAsText, writeAsText
-
-
-
-
Constructor Detail
-
DataSource
public DataSource(ExecutionEnvironment context, org.apache.flink.api.common.io.InputFormat<OUT,?> inputFormat, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> type, String dataSourceLocationName)
Deprecated.Creates a new data source.- Parameters:
context- The environment in which the data source gets executed.inputFormat- The input format that the data source executes.type- The type of the elements produced by this input format.
-
-
Method Detail
-
getInputFormat
@Internal public org.apache.flink.api.common.io.InputFormat<OUT,?> getInputFormat()
Deprecated.Gets the input format that is executed by this data source.- Returns:
- The input format that is executed by this data source.
-
withParameters
public DataSource<OUT> withParameters(org.apache.flink.configuration.Configuration parameters)
Deprecated.Pass a configuration to the InputFormat.- Parameters:
parameters- Configuration parameters
-
getParameters
public org.apache.flink.configuration.Configuration getParameters()
Deprecated.- Returns:
- Configuration for the InputFormat.
-
getSplitDataProperties
@PublicEvolving public SplitDataProperties<OUT> getSplitDataProperties()
Deprecated.Returns theSplitDataPropertiesfor theInputSplits of this DataSource for configurations.SplitDataProperties can help to generate more efficient execution plans.
IMPORTANT: Incorrect configuration of SplitDataProperties can cause wrong results!
- Returns:
- The SplitDataProperties for the InputSplits of this DataSource.
-
translateToDataFlow
protected org.apache.flink.api.common.operators.GenericDataSourceBase<OUT,?> translateToDataFlow()
Deprecated.
-
-