@PublicEvolving public final class Slide extends Object
For example, a sliding window of size 15 minutes with 5 minutes sliding interval groups elements of 15 minutes and evaluates every five minutes. Each element is contained in three consecutive window evaluations.
Java Example:
Slide.over("10.minutes").every("5.minutes").on("rowtime").as("w")
Scala Example:
Slide over 10.minutes every 5.minutes on 'rowtime as 'w
Constructor and Description |
---|
Slide() |
Modifier and Type | Method and Description |
---|---|
static SlideWithSize |
over(Expression size)
Creates a sliding window.
|
public static SlideWithSize over(Expression size)
For example, a sliding window of size 15 minutes with 5 minutes sliding interval groups elements of 15 minutes and evaluates every five minutes. Each element is contained in three consecutive
size
- the size of the window as time or row-count intervalCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.