Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractComparableAggregator<R>

Abstract aggregator that processes values extracted from a set of entries in a Map, with knowledge of how to compare those values. There are two way to use the AbstractComparableAggregator:

  • All the extracted objects must implement the Java Comparable interface, or
  • The AbstractComparableAggregator has to be provided with a Comparator object.
  • This Comparator must exist on the server in order to be usable.
If there are no entries to aggregate, the returned result will be `null`.

Type parameters

  • R

    the type of the aggregation result

Hierarchy

Index

Constructors

Properties

Methods

Constructors

Protected constructor

  • Construct an AbstractComparableAggregator that will aggregate Java-Comparable values extracted from the cache entries.

    Parameters

    • clz: string

      the server-side EntryAggregator implementation type identifier

    • 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 AbstractComparableAggregator

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