Class DataStreamSource<T>
java.lang.Object
org.apache.flink.streaming.api.datastream.DataStream<T>
org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator<T>
org.apache.flink.streaming.api.datastream.DataStreamSource<T>
- Type Parameters:
T- Type of the elements in the DataStream created from the this source.
The DataStreamSource represents the starting point of a DataStream.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.streaming.api.datastream.DataStream
DataStream.Collector<T> -
Field Summary
Fields inherited from class org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator
nonParallelFields inherited from class org.apache.flink.streaming.api.datastream.DataStream
environment, transformation -
Constructor Summary
ConstructorsConstructorDescriptionDataStreamSource(SingleOutputStreamOperator<T> operator) Constructor for "deep" sources that manually set up (one or more) custom configured complex operators.DataStreamSource(StreamExecutionEnvironment environment, org.apache.flink.api.common.typeinfo.TypeInformation<T> outTypeInfo, StreamSource<T, ?> operator, boolean isParallel, String sourceName) DataStreamSource(StreamExecutionEnvironment environment, org.apache.flink.api.common.typeinfo.TypeInformation<T> outTypeInfo, StreamSource<T, ?> operator, boolean isParallel, String sourceName, org.apache.flink.api.connector.source.Boundedness boundedness) The constructor used to create legacy sources.DataStreamSource(StreamExecutionEnvironment environment, org.apache.flink.api.connector.source.Source<T, ?, ?> source, org.apache.flink.api.common.eventtime.WatermarkStrategy<T> watermarkStrategy, org.apache.flink.api.common.typeinfo.TypeInformation<T> outTypeInfo, String sourceName) Constructor for new Sources (FLIP-27). -
Method Summary
Modifier and TypeMethodDescriptionsetParallelism(int parallelism) Sets the parallelism for this operator.Methods inherited from class org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator
cache, disableChaining, enableAsyncState, forceNonParallel, getName, getSideOutput, name, returns, returns, returns, setBufferTimeout, setDescription, setMaxParallelism, setUidHash, slotSharingGroup, slotSharingGroup, startNewChain, uidMethods inherited from class org.apache.flink.streaming.api.datastream.DataStream
addSink, assignTimestampsAndWatermarks, broadcast, broadcast, clean, coGroup, collectAsync, collectAsync, connect, connect, countWindowAll, countWindowAll, doTransform, executeAndCollect, executeAndCollect, executeAndCollect, executeAndCollect, filter, flatMap, flatMap, forward, fullWindowPartition, getExecutionConfig, getExecutionEnvironment, getId, getMinResources, getParallelism, getPreferredResources, getTransformation, getType, global, join, keyBy, keyBy, keyBy, map, map, partitionCustom, print, print, printToErr, printToErr, process, process, project, rebalance, rescale, setConnectionType, shuffle, sinkTo, sinkTo, transform, transform, union, windowAll, writeToSocket, writeUsingOutputFormat
-
Constructor Details
-
DataStreamSource
public DataStreamSource(StreamExecutionEnvironment environment, org.apache.flink.api.common.typeinfo.TypeInformation<T> outTypeInfo, StreamSource<T, ?> operator, boolean isParallel, String sourceName) -
DataStreamSource
public DataStreamSource(StreamExecutionEnvironment environment, org.apache.flink.api.common.typeinfo.TypeInformation<T> outTypeInfo, StreamSource<T, ?> operator, boolean isParallel, String sourceName, org.apache.flink.api.connector.source.Boundedness boundedness) The constructor used to create legacy sources. -
DataStreamSource
Constructor for "deep" sources that manually set up (one or more) custom configured complex operators. -
DataStreamSource
public DataStreamSource(StreamExecutionEnvironment environment, org.apache.flink.api.connector.source.Source<T, ?, ?> source, org.apache.flink.api.common.eventtime.WatermarkStrategy<T> watermarkStrategy, org.apache.flink.api.common.typeinfo.TypeInformation<T> outTypeInfo, String sourceName) Constructor for new Sources (FLIP-27).
-
-
Method Details
-
setParallelism
Description copied from class:SingleOutputStreamOperatorSets the parallelism for this operator.- Overrides:
setParallelismin classSingleOutputStreamOperator<T>- Parameters:
parallelism- The parallelism for this operator.- Returns:
- The operator with set parallelism.
-