An EntryAggregator represents processing that can be directed to occur against some subset of the entries in a cache, resulting in an aggregated result. Common examples of aggregation include functions such as min(), max() and avg(). However, the concept of aggregation applies to any process that needs to evaluate a group of entries to come up with a single answer.

Type Parameters

  • K = any

    the type of the Map entry key

  • V = any

    the type of the Map entry value

  • R = any

    the type of the aggregation result

Hierarchy

Constructors

Properties

Methods

Constructors

  • Construct an AbstractAggregator that will aggregate values extracted from the cache entries.

    Type Parameters

    • K = any

    • V = any

    • R = any

    Parameters

    • clz: string

      the server-side EntryAggregator implementation type identifier

    • Optional extractorOrProperty: string | ValueExtractor

      the extractor that provides values to aggregate or the name of the method that could be invoked via Java reflection and that returns 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 ; must not be null

    Returns EntryAggregator<K, V, R>

Properties

@class: string

Server-side EntryAggregator implementation type identifier.

extractor?: ValueExtractor

The ValueExtractor to apply when aggregating results.

Methods