T1
- The type parameter of the elements in the first streamsT2
- The The type parameter of the elements in the second stream@PublicEvolving public static class KeyedStream.IntervalJoin<T1,T2,KEY> extends Object
限定符和类型 | 方法和说明 |
---|---|
KeyedStream.IntervalJoined<T1,T2,KEY> |
between(Time lowerBound,
Time upperBound)
Specifies the time boundaries over which the join operation works, so that
leftElement.timestamp + lowerBound <= rightElement.timestamp <= leftElement.timestamp + upperBound
By default both the lower and the upper bound are inclusive.
|
@PublicEvolving public KeyedStream.IntervalJoined<T1,T2,KEY> between(Time lowerBound, Time upperBound)
leftElement.timestamp + lowerBound <= rightElement.timestamp <= leftElement.timestamp + upperBoundBy default both the lower and the upper bound are inclusive. This can be configured with
KeyedStream.IntervalJoined.lowerBoundExclusive()
and
KeyedStream.IntervalJoined.upperBoundExclusive()
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 lowerBoundCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.