The ReducerAggregator is used to implement functionality similar to NamedMap getAll() API. Instead of returning the complete set of values, it will return a portion of value attributes based on the provided ValueExtractor.

This aggregator could be used in combination with MultiExtractor allowing one to collect tuples that are a subset of the attributes of each object stored in the cache.

Type Parameters

  • K = any

    the type of the Map entry keys

  • V = any

    the type of the Map entry values

  • E = any

    extracted value type

Hierarchy

Constructors

Properties

Methods

Constructors

  • Construct a new ReducerAggregator.

    Type Parameters

    • K = any

    • V = any

    • E = any

    Parameters

    • 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

    Returns ReducerAggregator<K, V, E>

Properties

@class: string

Server-side EntryAggregator implementation type identifier.

extractor?: ValueExtractor

The ValueExtractor to apply when aggregating results.

Methods