public class Count extends WindowingHelper
of(int) to get an instance.executionConfig| Constructor and Description |
|---|
Count(int count)
Specifies on which element a trigger or an eviction should happen (based
on the count of the elements).
|
| Modifier and Type | Method and Description |
|---|---|
static Count |
of(int count)
Specifies a count based eviction (window size) or trigger policy (slide
size).
|
Count |
startingAt(int startValue)
Sets the initial value of the counter.
|
EvictionPolicy<?> |
toEvict()
Method for encapsulating the
EvictionPolicy. |
TriggerPolicy<?> |
toTrigger()
Method for encapsulating the
TriggerPolicy. |
Count |
withDelete(int deleteOnEviction)
Sets the number of elements deleted at each eviction (i.e when the number
elements exceeds the window size).
|
setExecutionConfigpublic Count(int count)
of(int).count - the number of elements to count before trigger/evictpublic EvictionPolicy<?> toEvict()
WindowingHelperEvictionPolicy.toEvict in class WindowingHelperpublic TriggerPolicy<?> toTrigger()
WindowingHelperTriggerPolicy.toTrigger in class WindowingHelperpublic Count withDelete(int deleteOnEviction)
deleteOnEviction - The number of elements deleted at each evitionpublic Count startingAt(int startValue)
startValue - Starting value of the window counterpublic static Count of(int count)
count - the number of elements to count before trigger/evictCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.