public abstract class AbstractAggregation extends Object implements PathFunction
Constructor and Description |
---|
AbstractAggregation() |
Modifier and Type | Method and Description |
---|---|
protected abstract Number |
getValue()
Obtains the value generated via the series of next value calls
|
Object |
invoke(String currentPath,
PathRef parent,
Object model,
EvaluationContext ctx)
Invoke the function and output a JSON object (or scalar) value which will be the result of executing the path
|
protected abstract void |
next(Number value)
Defines the next value in the array to the mathmatical function
|
protected abstract void next(Number value)
value
- The numerical value to process nextprotected abstract Number getValue()
public Object invoke(String currentPath, PathRef parent, Object model, EvaluationContext ctx)
PathFunction
invoke
in interface PathFunction
currentPath
- The current path location inclusive of the function nameparent
- The path location above the current functionmodel
- The JSON model as input to this particular functionctx
- Eval context, state bag used as the path is traversed, maintains the result of executingCopyright © 2021. All rights reserved.