Class AbstractSequenceAggregation

  • All Implemented Interfaces:
    PathFunction
    Direct Known Subclasses:
    First, Index, Last

    public abstract class AbstractSequenceAggregation
    extends java.lang.Object
    implements PathFunction
    Defines the pattern for taking item from collection of JSONArray by index Created by git9527 on 6/11/22.
    • Constructor Detail

      • AbstractSequenceAggregation

        public AbstractSequenceAggregation()
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.String currentPath,
                                       PathRef parent,
                                       java.lang.Object model,
                                       EvaluationContext ctx,
                                       java.util.List<Parameter> parameters)
        Description copied from interface: PathFunction
        Invoke the function and output a JSON object (or scalar) value which will be the result of executing the path
        Specified by:
        invoke in interface PathFunction
        Parameters:
        currentPath - The current path location inclusive of the function name
        parent - The path location above the current function
        model - The JSON model as input to this particular function
        ctx - Eval context, state bag used as the path is traversed, maintains the result of executing
        Returns:
        result