Class BuiltinFuncs
- java.lang.Object
-
- org.apache.flink.datastream.api.builtin.BuiltinFuncs
-
@Experimental public class BuiltinFuncs extends Object
Built-in functions for all extension of datastream v2.
-
-
Constructor Summary
Constructors Constructor Description BuiltinFuncs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <IN1,IN2,OUT>
TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>join(JoinFunction<IN1,IN2,OUT> joinFunction)Wrap the JoinFunction and INNER JoinType within a ProcessFunction to perform the Join operation.static <IN1,IN2,OUT>
TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>join(JoinFunction<IN1,IN2,OUT> joinFunction, JoinType joinType)Wrap the JoinFunction and JoinType within a ProcessFunction to perform the Join operation.static <KEY,T1,T2,OUT>
NonKeyedPartitionStream<OUT>join(KeyedPartitionStream<KEY,T1> leftStream, KeyedPartitionStream<KEY,T2> rightStream, JoinFunction<T1,T2,OUT> joinFunction)Inner join twoKeyedPartitionStream.static <KEY,T1,T2,OUT>
NonKeyedPartitionStream<OUT>join(KeyedPartitionStream<KEY,T1> leftStream, KeyedPartitionStream<KEY,T2> rightStream, JoinFunction<T1,T2,OUT> joinFunction, JoinType joinType)Join twoKeyedPartitionStreamwith the type ofJoinType.static <KEY,T1,T2,OUT>
NonKeyedPartitionStream<OUT>join(NonKeyedPartitionStream<T1> leftStream, org.apache.flink.api.java.functions.KeySelector<T1,KEY> leftKeySelector, NonKeyedPartitionStream<T2> rightStream, org.apache.flink.api.java.functions.KeySelector<T2,KEY> rightKeySelector, JoinFunction<T1,T2,OUT> joinFunction)Inner join twoNonKeyedPartitionStream.static <KEY,T1,T2,OUT>
NonKeyedPartitionStream<OUT>join(NonKeyedPartitionStream<T1> leftStream, org.apache.flink.api.java.functions.KeySelector<T1,KEY> leftKeySelector, NonKeyedPartitionStream<T2> rightStream, org.apache.flink.api.java.functions.KeySelector<T2,KEY> rightKeySelector, JoinFunction<T1,T2,OUT> joinFunction, JoinType joinType)Join twoNonKeyedPartitionStreamwith the type ofJoinType.static <IN,OUT>
OneInputStreamProcessFunction<IN,OUT>window(WindowStrategy windowStrategy, OneInputWindowStreamProcessFunction<IN,OUT> windowProcessFunction)Wrap the WindowStrategy and OneInputWindowStreamProcessFunction within a OneInputStreamProcessFunction to perform the window operation.static <IN1,IN2,OUT>
TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT>window(WindowStrategy windowStrategy, TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,OUT> windowProcessFunction)Wrap the WindowStrategy and TwoInputNonBroadcastWindowStreamProcessFunction within a TwoInputNonBroadcastStreamProcessFunction to perform the window operation.static <IN,OUT1,OUT2>
TwoOutputStreamProcessFunction<IN,OUT1,OUT2>window(WindowStrategy windowStrategy, TwoOutputWindowStreamProcessFunction<IN,OUT1,OUT2> windowProcessFunction)Wrap the WindowStrategy and TwoOutputWindowStreamProcessFunction within a TwoOutputStreamProcessFunction to perform the window operation.
-
-
-
Method Detail
-
join
public static <IN1,IN2,OUT> TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT> join(JoinFunction<IN1,IN2,OUT> joinFunction)
Wrap the JoinFunction and INNER JoinType within a ProcessFunction to perform the Join operation. Note that the wrapped process function should only be used with KeyedStream.
-
join
public static <IN1,IN2,OUT> TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT> join(JoinFunction<IN1,IN2,OUT> joinFunction, JoinType joinType)
Wrap the JoinFunction and JoinType within a ProcessFunction to perform the Join operation. Note that the wrapped process function should only be used with KeyedStream.
-
join
public static <KEY,T1,T2,OUT> NonKeyedPartitionStream<OUT> join(KeyedPartitionStream<KEY,T1> leftStream, KeyedPartitionStream<KEY,T2> rightStream, JoinFunction<T1,T2,OUT> joinFunction)
Inner join twoKeyedPartitionStream.
-
join
public static <KEY,T1,T2,OUT> NonKeyedPartitionStream<OUT> join(KeyedPartitionStream<KEY,T1> leftStream, KeyedPartitionStream<KEY,T2> rightStream, JoinFunction<T1,T2,OUT> joinFunction, JoinType joinType)
Join twoKeyedPartitionStreamwith the type ofJoinType.
-
join
public static <KEY,T1,T2,OUT> NonKeyedPartitionStream<OUT> join(NonKeyedPartitionStream<T1> leftStream, org.apache.flink.api.java.functions.KeySelector<T1,KEY> leftKeySelector, NonKeyedPartitionStream<T2> rightStream, org.apache.flink.api.java.functions.KeySelector<T2,KEY> rightKeySelector, JoinFunction<T1,T2,OUT> joinFunction)
Inner join twoNonKeyedPartitionStream. The two streams will be redistributed byKeySelectorrespectively.
-
join
public static <KEY,T1,T2,OUT> NonKeyedPartitionStream<OUT> join(NonKeyedPartitionStream<T1> leftStream, org.apache.flink.api.java.functions.KeySelector<T1,KEY> leftKeySelector, NonKeyedPartitionStream<T2> rightStream, org.apache.flink.api.java.functions.KeySelector<T2,KEY> rightKeySelector, JoinFunction<T1,T2,OUT> joinFunction, JoinType joinType)
Join twoNonKeyedPartitionStreamwith the type ofJoinType. The two streams will be redistributed byKeySelectorrespectively.
-
window
public static <IN,OUT> OneInputStreamProcessFunction<IN,OUT> window(WindowStrategy windowStrategy, OneInputWindowStreamProcessFunction<IN,OUT> windowProcessFunction)
Wrap the WindowStrategy and OneInputWindowStreamProcessFunction within a OneInputStreamProcessFunction to perform the window operation.- Parameters:
windowStrategy- the window strategywindowProcessFunction- the window process function- Returns:
- the wrapped process function
-
window
public static <IN1,IN2,OUT> TwoInputNonBroadcastStreamProcessFunction<IN1,IN2,OUT> window(WindowStrategy windowStrategy, TwoInputNonBroadcastWindowStreamProcessFunction<IN1,IN2,OUT> windowProcessFunction)
Wrap the WindowStrategy and TwoInputNonBroadcastWindowStreamProcessFunction within a TwoInputNonBroadcastStreamProcessFunction to perform the window operation.- Parameters:
windowStrategy- the window strategywindowProcessFunction- the window process function- Returns:
- the wrapped process function
-
window
public static <IN,OUT1,OUT2> TwoOutputStreamProcessFunction<IN,OUT1,OUT2> window(WindowStrategy windowStrategy, TwoOutputWindowStreamProcessFunction<IN,OUT1,OUT2> windowProcessFunction)
Wrap the WindowStrategy and TwoOutputWindowStreamProcessFunction within a TwoOutputStreamProcessFunction to perform the window operation.- Parameters:
windowStrategy- the window strategywindowProcessFunction- the window process function- Returns:
- the wrapped process function
-
-