Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EntryAggregator<K, V, R>

An EntryAggregator represents processing that can be directed to occur against some subset of the entries in an cache, resulting in a 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

Index

Constructors

Properties

Methods

Constructors

Protected constructor

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

    Parameters

    • clz: string

      the server-side EntryAggregator implementation type identifier

    • Optional 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; must not be null

    Returns EntryAggregator

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