AbstractComparableAggregator Class Reference

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

Inherits AbstractAggregator.

Inherited by ComparableMax, and ComparableMin.

List of all members.


Detailed Description

Abstract aggregator that processes Comparable values extracted from a set of entries in a Map.

All the extracted objects must implement the Comparable interface and the result of the aggregator is a Comparable value. If the set of entries is empty, a NULL result is returned.

Author:
djl 2008.05.09

Public Types

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

Protected Member Functions

virtual void init (bool fFinal)
 Initialize the aggregation result.

Parameters:
fFinal true is passed if the aggregation process that is being initialized must produce a final aggregation result; this will only be false if a parallel approach is being used and the initial (partial) aggregation process is being initialized

virtual Object::Holder finalizeResult (bool fFinal)
 Obtain the result of the aggregation.

If the fFinal parameter is true, the returned object must be the final result of the aggregation; otherwise, the returned object will be treated as a partial result that should be incorporated into the final result.

Parameters:
fFinal true to indicate that the final result of the aggregation process should be returned; this will only be false if a parallel approach is being used
Returns:
the result of the aggregation process


Protected Attributes

int32_t m_count
 The count of processed entries.
MemberView< Comparablem_vResult
 The running result value.

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