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 of Window
on which the co-group operation works.@Public public static class CoGroupedStreams.WithWindow<T1,T2,KEY,W extends Window> extends Object
KeySelectors
defined for both inputs as
well as a WindowAssigner
.Modifier | Constructor and Description |
---|---|
protected |
WithWindow(DataStream<T1> input1,
DataStream<T2> input2,
KeySelector<T1,KEY> keySelector1,
KeySelector<T2,KEY> keySelector2,
TypeInformation<KEY> keyType,
WindowAssigner<? super CoGroupedStreams.TaggedUnion<T1,T2>,W> windowAssigner,
Trigger<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> trigger,
Evictor<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> evictor) |
Modifier and Type | Method and Description |
---|---|
<T> DataStream<T> |
apply(CoGroupFunction<T1,T2,T> function)
Completes the co-group operation with the user function that is executed
for windowed groups.
|
<T> DataStream<T> |
apply(CoGroupFunction<T1,T2,T> function,
TypeInformation<T> resultType)
Completes the co-group operation with the user function that is executed
for windowed groups.
|
CoGroupedStreams.WithWindow<T1,T2,KEY,W> |
evictor(Evictor<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> newEvictor)
Sets the
Evictor that should be used to evict elements from a window before emission. |
CoGroupedStreams.WithWindow<T1,T2,KEY,W> |
trigger(Trigger<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> newTrigger)
Sets the
Trigger that should be used to trigger window emission. |
protected WithWindow(DataStream<T1> input1, DataStream<T2> input2, KeySelector<T1,KEY> keySelector1, KeySelector<T2,KEY> keySelector2, TypeInformation<KEY> keyType, WindowAssigner<? super CoGroupedStreams.TaggedUnion<T1,T2>,W> windowAssigner, Trigger<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> trigger, Evictor<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> evictor)
@PublicEvolving public CoGroupedStreams.WithWindow<T1,T2,KEY,W> trigger(Trigger<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> newTrigger)
Trigger
that should be used to trigger window emission.@PublicEvolving public CoGroupedStreams.WithWindow<T1,T2,KEY,W> evictor(Evictor<? super CoGroupedStreams.TaggedUnion<T1,T2>,? super W> newEvictor)
Evictor
that 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.
public <T> DataStream<T> apply(CoGroupFunction<T1,T2,T> function)
public <T> DataStream<T> apply(CoGroupFunction<T1,T2,T> function, TypeInformation<T> resultType)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.