Class AccumulatorExpression


  • public class AccumulatorExpression
    extends Expression
    Since:
    2.1
    • Constructor Detail

      • AccumulatorExpression

        @MorphiaInternal
        public AccumulatorExpression​(String initFunction,
                                     String accumulateFunction,
                                     List<Expression> accumulateArgs,
                                     String mergeFunction)
        Parameters:
        initFunction -
        accumulateFunction -
        accumulateArgs -
        mergeFunction -
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • finalizeFunction

        public AccumulatorExpression finalizeFunction​(String finalizeFunction)
        Optional. Function used to update the result of the accumulation.
        Parameters:
        finalizeFunction - the function body
        Returns:
        this
      • initArgs

        public AccumulatorExpression initArgs​(List<Expression> initArgs)
        Optional. Arguments passed to the init function.
        Parameters:
        initArgs - the arguments
        Returns:
        this