Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReducerAggregator<K, V, E>

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 extractor.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

Index

Constructors

Properties

Methods

Constructors

constructor

  • Construct a new ReducerAggregator.

    Parameters

    • extractorOrProperty: ValueExtractor | string

      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

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