DATA - the data type handled by the delta function represented by this
helper.public class Delta<DATA> extends WindowingHelper<DATA>
DeltaFunction.executionConfig| Constructor and Description |
|---|
Delta(DeltaFunction<DATA> deltaFunction,
DATA initVal,
double threshold)
Creates a delta helper representing a delta count or eviction policy
|
| Modifier and Type | Method and Description |
|---|---|
static <DATA> Delta<DATA> |
of(double threshold,
DeltaFunction<DATA> deltaFunction,
DATA initVal)
Creates a delta helper representing a delta trigger or eviction policy.
|
EvictionPolicy<DATA> |
toEvict()
Method for encapsulating the
EvictionPolicy. |
TriggerPolicy<DATA> |
toTrigger()
Method for encapsulating the
TriggerPolicy. |
setExecutionConfigpublic Delta(DeltaFunction<DATA> deltaFunction, DATA initVal, double threshold)
deltaFunction - The delta function which should be used to calculate the delta
points.initVal - The initial value which will be used to calculate the first
delta.threshold - The threshold used by the delta function.public EvictionPolicy<DATA> toEvict()
WindowingHelperEvictionPolicy.toEvict in class WindowingHelper<DATA>public TriggerPolicy<DATA> toTrigger()
WindowingHelperTriggerPolicy.toTrigger in class WindowingHelper<DATA>public static <DATA> Delta<DATA> of(double threshold, DeltaFunction<DATA> deltaFunction, DATA initVal)
deltaFunction - The delta function which should be used to calculate the delta
points.initVal - The initial value which will be used to calculate the first
delta.threshold - The threshold used by the delta function.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.