Show / Hide Table of Contents

Class DecimalSum

Calculates a minimum of numeric values extracted from a set of entries in a IDictionary in a form of a decimal value.

Inheritance
object
AbstractAggregator
AbstractDecimalAggregator
DecimalSum
Implements
IParallelAwareAggregator
IEntryAggregator
IPortableObject
Inherited Members
AbstractDecimalAggregator.Init(bool)
AbstractDecimalAggregator.FinalizeResult(bool)
AbstractDecimalAggregator.EnsureDecimal(object)
AbstractDecimalAggregator.m_count
AbstractDecimalAggregator.m_result
AbstractAggregator.Extractor
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 class DecimalSum : AbstractDecimalAggregator, IParallelAwareAggregator, IEntryAggregator, IPortableObject
Remarks

All the extracted objects will be treated as Decimal values. If the set of entries is empty, a null result is returned.

Constructors

DecimalSum()

Default constructor.

Declaration
public DecimalSum()

DecimalSum(string)

Construct a DecimalSum aggregator.

Declaration
public DecimalSum(string member)
Parameters
Type Name Description
string member

The name of the member that returns a value in the form of any .NET object that is Decimal.

DecimalSum(IValueExtractor)

Construct a DecimalSum aggregator.

Declaration
public DecimalSum(IValueExtractor extractor)
Parameters
Type Name Description
IValueExtractor extractor

The extractor that provides a value in the form of any .NET object that is Decimal.

Methods

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
AbstractAggregator.Process(object, bool)
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.

Implements

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