public final class SlidingCountWindow extends BaseWindowConfig
Represents configuration of sliding window based on count of events. Window of length windowLength
slides at every count of given slideLength
WindowConfig.Type
slideLength, windowLength
Modifier and Type | Method and Description |
---|---|
<T> WindowStrategy<T> |
getWindowStrategy()
Gives the type of windowing.
|
static SlidingCountWindow |
of(int windowCount,
int slidingCount) |
getSlidingLength, getWindowLength, validate
public <T> WindowStrategy<T> getWindowStrategy()
WindowConfig
Gives the type of windowing. It can be any of Type
values.
public static SlidingCountWindow of(int windowCount, int slidingCount)
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.