Class JoinedStreams.WithWindow<T1,T2,KEY,W extends Window>
java.lang.Object
org.apache.flink.streaming.api.datastream.JoinedStreams.WithWindow<T1,T2,KEY,W>
- Type Parameters:
T1- Type of the elements from the first inputT2- Type of the elements from the second inputKEY- Type of the key. This must be the same for both inputsW- Type ofWindowon which the join operation works.
- Enclosing class:
- JoinedStreams<T1,
T2>
A join operation that has
KeySelectors defined for both inputs as well as
a WindowAssigner.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWithWindow(DataStream<T1> input1, DataStream<T2> input2, org.apache.flink.api.java.functions.KeySelector<T1, KEY> keySelector1, org.apache.flink.api.java.functions.KeySelector<T2, KEY> keySelector2, org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType, WindowAssigner<? super org.apache.flink.util.TaggedUnion<T1, T2>, W> windowAssigner, Trigger<? super org.apache.flink.util.TaggedUnion<T1, T2>, ? super W> trigger, Evictor<? super org.apache.flink.util.TaggedUnion<T1, T2>, ? super W> evictor, Duration allowedLateness) -
Method Summary
Modifier and TypeMethodDescriptionallowedLateness(Duration newLateness) Sets the time by which elements are allowed to be late.<T> SingleOutputStreamOperator<T>Completes the join operation with the user function that is executed for each combination of elements with the same key in a window.<T> SingleOutputStreamOperator<T>apply(org.apache.flink.api.common.functions.FlatJoinFunction<T1, T2, T> function, org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType) Completes the join operation with the user function that is executed for each combination of elements with the same key in a window.<T> SingleOutputStreamOperator<T>Completes the join operation with the user function that is executed for each combination of elements with the same key in a window.<T> SingleOutputStreamOperator<T>apply(org.apache.flink.api.common.functions.JoinFunction<T1, T2, T> function, org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType) Completes the join operation with the user function that is executed for each combination of elements with the same key in a window.Sets theEvictorthat should be used to evict elements from a window before emission.Sets theTriggerthat should be used to trigger window emission.
-
Constructor Details
-
WithWindow
@PublicEvolving protected WithWindow(DataStream<T1> input1, DataStream<T2> input2, org.apache.flink.api.java.functions.KeySelector<T1, KEY> keySelector1, org.apache.flink.api.java.functions.KeySelector<T2, KEY> keySelector2, org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType, WindowAssigner<? super org.apache.flink.util.TaggedUnion<T1, T2>, W> windowAssigner, Trigger<? super org.apache.flink.util.TaggedUnion<T1, T2>, ? super W> trigger, Evictor<? super org.apache.flink.util.TaggedUnion<T1, T2>, ? super W> evictor, @Nullable Duration allowedLateness)
-
-
Method Details
-
trigger
@PublicEvolving public JoinedStreams.WithWindow<T1,T2, triggerKEY, W> (Trigger<? super org.apache.flink.util.TaggedUnion<T1, T2>, ? super W> newTrigger) Sets theTriggerthat should be used to trigger window emission. -
evictor
@PublicEvolving public JoinedStreams.WithWindow<T1,T2, evictorKEY, W> (Evictor<? super org.apache.flink.util.TaggedUnion<T1, T2>, ? super W> newEvictor) Sets theEvictorthat should be used to evict elements from a window before emission.Note: When using an evictor window performance will degrade significantly, since pre-aggregation of window results cannot be used.
-
allowedLateness
@PublicEvolving public JoinedStreams.WithWindow<T1,T2, allowedLatenessKEY, W> (@Nullable Duration newLateness) Sets the time by which elements are allowed to be late.- See Also:
-
apply
public <T> SingleOutputStreamOperator<T> apply(org.apache.flink.api.common.functions.JoinFunction<T1, T2, T> function) Completes the join operation with the user function that is executed for each combination of elements with the same key in a window. -
apply
public <T> SingleOutputStreamOperator<T> apply(org.apache.flink.api.common.functions.FlatJoinFunction<T1, T2, T> function, org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType) Completes the join operation with the user function that is executed for each combination of elements with the same key in a window. -
apply
public <T> SingleOutputStreamOperator<T> apply(org.apache.flink.api.common.functions.FlatJoinFunction<T1, T2, T> function) Completes the join operation with the user function that is executed for each combination of elements with the same key in a window. -
apply
public <T> SingleOutputStreamOperator<T> apply(org.apache.flink.api.common.functions.JoinFunction<T1, T2, T> function, org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType) Completes the join operation with the user function that is executed for each combination of elements with the same key in a window.
-