Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SumAggregator

Calculates an sum for values of any numeric type extracted from a set of entries in a Map in a form of a numeric value.

If the set of entries is empty, a 'null' result is returned.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • extractorOrProperty: ValueExtractor | string

      the extractor that provides a value in the form of any numeric object or the name of the method that could be invoked via Java reflection and that returns numeric values to aggregate; this parameter can also be a dot-delimited sequence of method names which would result in an aggregator based on the ChainedExtractor that is based on an array of corresponding UniversalExtractor objects. May not be null

    Returns SumAggregator

Properties

Protected @class

@class: string

Server-side EntryAggregator implementation type identifier.

Protected Optional extractor

extractor: ValueExtractor

The extractor.ValueExtractor to apply when aggregating results.

Methods

andThen