Operators
-
map
DataStream → DataStream -
flatMap
DataStream → DataStream -
fliter
DataStream → DataStream -
keyBy
DataStream → KeyedStream
对数据进行分流 -
reduce
KeyedStream/WindowedStream/AllWindowedStream → DataStream
用于keyBy或者window/windowAll之后 -
window
KeyedStream → WindowedStream
用于keyBy之后 -
windowAll
DataStream → AllWindowedStream
不用于keyBy之后,此算子并行度始终为1 -
apply
WindowedStream/AllWindowedStream → DataStream -
union
DataStream* → DataStream
合并相同类型的流 -
join
DataStream,DataStream → DataStream
比较两条流中的元素,如果相等输出,否则不进行输出。dataStream.join(otherStream)
.where().equalTo()
.window(TumblingEventTimeWindows.of(Time.seconds(3)))
.apply (new JoinFunction () {…}); -
Interv