ComparableMax Class Reference

#include <coherence/util/aggregator/ComparableMax.hpp>

Inherits AbstractComparableAggregator.

List of all members.


Detailed Description

Calculates a maximum among Comparable values extracted from a set of entries in a Map.

This aggregator is most commonly used with values of type String or Date.

Author:
djl 2008.05.12

Public Types

typedef spec::Handle Handle
 ComparableMax Handle definition.
typedef spec::View View
 ComparableMax View definition.
typedef spec::Holder Holder
 ComparableMax Holder definition.

Protected Member Functions

 ComparableMax ()
 Default constructor (necessary for the PortableObject interface).
 ComparableMax (ValueExtractor::View vExtractor)
 Construct a ComparableMax aggregator.
virtual void process (Object::View v, bool fFinal)
 Incorporate one aggregatable value into the result.

If the fFinal parameter is true, the given object is a partial result (returned by an individual parallel aggregator) that should be incorporated into the final result; otherwise, the object is a value extracted from an coherence::util::InvocableMap::Entry.

Parameters:
vO the value to incorporate into the aggregated result
fFinal true to indicate that the given object is a partial result returned by a parallel aggregator


Constructor & Destructor Documentation

ComparableMax ( ValueExtractor::View  vExtractor  )  [protected]

Construct a ComparableMax aggregator.

Parameters:
vExtractor the extractor that provides a value in the form of any object that is a Number


The documentation for this class was generated from the following file: Copyright (c) 2000-2008 Oracle. All rights reserved.