public class ResetCounter extends NamedWarpScriptFunction implements WarpScriptMapperFunction, WarpScriptBucketizerFunction
| Constructor and Description |
|---|
ResetCounter(java.lang.String name)
Create a reset counter which considers a lower value than the previous one to
be a reset.
|
ResetCounter(java.lang.String name,
boolean resetHigher)
Create a reset counter, forcing the type of resets.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(java.lang.Object[] args) |
getName, refSnapshot, setName, toStringpublic ResetCounter(java.lang.String name,
boolean resetHigher)
resetHigher - If true, a value higher than the previous one will count as a reset.
If false, a value lower than the previous one will count as a reset.public ResetCounter(java.lang.String name)
public java.lang.Object apply(java.lang.Object[] args)
throws WarpScriptException
apply in interface WarpScriptAggregatorFunctionWarpScriptException