Class DoubleMax
Calculates a maximum of numeric values extracted from a collection of entries in a cache.
Inherited Members
Namespace: Tangosol.Util.Aggregator
Assembly: Coherence.dll
Syntax
public class DoubleMax : AbstractDoubleAggregator, IParallelAwareAggregator, IEntryAggregator, IPortableObject
Remarks
All the extracted objects (Byte, Int16, Int32, Int64, Single, Double)
will be treated as Double values. If the collection of
entries is empty, a null
result is returned.
Constructors
DoubleMax()
Default constructor.
Declaration
public DoubleMax()
DoubleMax(string)
Construct a DoubleMax aggregator.
Declaration
public DoubleMax(string member)
Parameters
Type | Name | Description |
---|---|---|
string | member | The name of the member that returns a value in the form of any .NET object out of Byte, Int16, Int32, Int64, Single, Double. |
DoubleMax(IValueExtractor)
Construct a DoubleMax aggregator.
Declaration
public DoubleMax(IValueExtractor extractor)
Parameters
Type | Name | Description |
---|---|---|
IValueExtractor | extractor | The extractor that provides a value in the form of any .NET object out of Byte, Int16, Int32, Int64, Single, Double. |
Methods
Init(bool)
Initialize the aggregation result.
Declaration
protected override void Init(bool isFinal)
Parameters
Type | Name | Description |
---|---|---|
bool | isFinal | 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. |
Overrides
Process(object, bool)
Incorporate one aggregatable value into the result.
Declaration
protected override void Process(object o, bool isFinal)
Parameters
Type | Name | Description |
---|---|---|
object | o | The value to incorporate into the aggregated result. |
bool | isFinal | true to indicate that the given object is a partial result returned by a parallel aggregator. |
Overrides
Remarks
If the isFinal
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
IInvocableCacheEntry.