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>
Perform a join over a time interval.
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the time boundaries over which the join operation works, so thatSets the time characteristic to event time.Sets the time characteristic to processing time.
-
Method Details
-
inEventTime
Sets the time characteristic to event time. -
inProcessingTime
Sets the time characteristic to processing time. -
between
@PublicEvolving public KeyedStream.IntervalJoined<T1,T2, betweenKEY> (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
-