#include <coherence/util/aggregator/ComparableMin.hpp>
Inherits AbstractComparableAggregator.
This aggregator is most commonly used with objects that implement Comparable such as String; a Comparator can also be supplied to perform the comparisons.
Public Types | |||||||
| typedef spec::Handle | Handle | ||||||
| ComparableMin Handle definition. | |||||||
| typedef spec::View | View | ||||||
| ComparableMin View definition. | |||||||
| typedef spec::Holder | Holder | ||||||
| ComparableMin Holder definition. | |||||||
Protected Member Functions | |||||||
| ComparableMin () | |||||||
| Default constructor (necessary for the PortableObject interface). | |||||||
| ComparableMin (ValueExtractor::View vExtractor, Comparator::View vComparator=NULL) | |||||||
| Construct a ComparableMin aggregator. | |||||||
| ComparableMin (String::View vsMethod, Comparator::View vComparator=NULL) | |||||||
| Construct a ComparableMin that will aggregate values extracted from a set of InvocableMap::Entry objects. | |||||||
| virtual void | process (Object::View v, bool fFinal) | ||||||
| Incorporate one aggregatable value into the result.
If the This implementation throws an UnsupportedOperationException.
| |||||||
| ComparableMin | ( | ValueExtractor::View | vExtractor, | |
| Comparator::View | vComparator = NULL | |||
| ) | [protected] |
Construct a ComparableMin aggregator.
| vExtractor | the extractor that provides an object to be compared | |
| vComparator | the comparator used to compare the extracted object, if NULL then the extracted object must implement Comparable |
| ComparableMin | ( | String::View | vsMethod, | |
| Comparator::View | vComparator = NULL | |||
| ) | [protected] |
Construct a ComparableMin that will aggregate values extracted from a set of InvocableMap::Entry objects.
| vsMethod | the name of the method that could be invoked via 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 ReflectionExtractor objects | |
| vComparator | the comparator used to compare the extracted object, if NULL then the extracted object must implement Comparable |