Show / Hide Table of Contents

Class AbstractDoubleAggregator

Abstract aggregator that processes numeric values extracted from a collection of entries in a cache.

Inheritance
object
AbstractAggregator
AbstractDoubleAggregator
DoubleAverage
DoubleMax
DoubleMin
DoubleSum
Implements
IParallelAwareAggregator
IEntryAggregator
IPortableObject
Inherited Members
AbstractAggregator.Extractor
AbstractAggregator.Process(object, bool)
AbstractAggregator.ParallelAggregator
AbstractAggregator.AggregateResults(ICollection)
AbstractAggregator.Aggregate(ICollection)
AbstractAggregator.ReadExternal(IPofReader)
AbstractAggregator.WriteExternal(IPofWriter)
AbstractAggregator.ToString()
AbstractAggregator.GetHashCode()
AbstractAggregator.Equals(object)
AbstractAggregator.m_isParallel
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Tangosol.Util.Aggregator
Assembly: Coherence.dll
Syntax
public abstract class AbstractDoubleAggregator : AbstractAggregator, 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

AbstractDoubleAggregator()

Default constructor.

Declaration
public AbstractDoubleAggregator()

AbstractDoubleAggregator(string)

Construct a AbstractDoubleAggregator aggregator.

Declaration
public AbstractDoubleAggregator(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.

AbstractDoubleAggregator(IValueExtractor)

Construct a AbstractDoubleAggregator aggregator.

Declaration
public AbstractDoubleAggregator(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.

Fields

m_count

The count of processed entries.

Declaration
[NonSerialized]
protected int m_count
Field Value
Type Description
int

m_result

The running result value.

Declaration
[NonSerialized]
protected double m_result
Field Value
Type Description
double

Methods

FinalizeResult(bool)

Obtain the result of the aggregation.

Declaration
protected override object FinalizeResult(bool isFinal)
Parameters
Type Name Description
bool isFinal

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
Type Description
object

The result of the aggregation process.

Overrides
AbstractAggregator.FinalizeResult(bool)
Remarks

If the isFinal 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.

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
AbstractAggregator.Init(bool)

Implements

IParallelAwareAggregator
IEntryAggregator
IPortableObject
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.