Class KeyedStream.IntervalJoin<T1,T2,KEY>
- java.lang.Object
-
- org.apache.flink.streaming.api.datastream.KeyedStream.IntervalJoin<T1,T2,KEY>
-
- Type Parameters:
T1
- The type parameter of the elements in the first streamsT2
- The type parameter of the elements in the second stream
- Enclosing class:
- KeyedStream<T,KEY>
@PublicEvolving public static class KeyedStream.IntervalJoin<T1,T2,KEY> extends Object
Perform a join over a time interval.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyedStream.IntervalJoined<T1,T2,KEY>
between(Duration lowerBound, Duration upperBound)
Specifies the time boundaries over which the join operation works, so thatKeyedStream.IntervalJoin<T1,T2,KEY>
inEventTime()
Sets the time characteristic to event time.KeyedStream.IntervalJoin<T1,T2,KEY>
inProcessingTime()
Sets the time characteristic to processing time.
-
-
-
Method Detail
-
inEventTime
public KeyedStream.IntervalJoin<T1,T2,KEY> inEventTime()
Sets the time characteristic to event time.
-
inProcessingTime
public KeyedStream.IntervalJoin<T1,T2,KEY> inProcessingTime()
Sets the time characteristic to processing time.
-
between
@PublicEvolving public KeyedStream.IntervalJoined<T1,T2,KEY> between(Duration lowerBound, Duration upperBound)
Specifies the time boundaries over which the join operation works, so thatleftElement.timestamp + lowerBound <= rightElement.timestamp <= leftElement.timestamp + upperBound
By default both the lower and the upper bound are inclusive. This can be configured with
KeyedStream.IntervalJoined.lowerBoundExclusive()
andKeyedStream.IntervalJoined.upperBoundExclusive()
- Parameters:
lowerBound
- The lower bound. Needs to be smaller than or equal to the upperBoundupperBound
- The upper bound. Needs to be bigger than or equal to the lowerBound
-
-