Show / Hide Table of Contents

Class ComparableMin

Calculates a minimum among values extracted from a set of entries in a cache.

Inheritance
object
AbstractAggregator
AbstractComparableAggregator
ComparableMin
Implements
IParallelAwareAggregator
IEntryAggregator
IPortableObject
Inherited Members
AbstractComparableAggregator.Init(bool)
AbstractComparableAggregator.FinalizeResult(bool)
AbstractComparableAggregator.ReadExternal(IPofReader)
AbstractComparableAggregator.WriteExternal(IPofWriter)
AbstractComparableAggregator.m_count
AbstractComparableAggregator.m_result
AbstractComparableAggregator.m_comparer
AbstractAggregator.Extractor
AbstractAggregator.ParallelAggregator
AbstractAggregator.AggregateResults(ICollection)
AbstractAggregator.Aggregate(ICollection)
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 ComparableMin : AbstractComparableAggregator, IParallelAwareAggregator, IEntryAggregator, IPortableObject
Remarks

This aggregator is most commonly used with objects that implement IComparable such as String or DateTime. An IComparer can also be supplied to perform the comparisons.

Constructors

ComparableMin()

Default constructor.

Declaration
public ComparableMin()

ComparableMin(string)

Construct a ComparableMin aggregator.

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

The name of the member that returns a value in the form of any object that implements IComparable interface.

ComparableMin(IValueExtractor)

Construct a ComparableMin aggregator.

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

The extractor that provides a value in the form of any object that implements IComparable interface.

ComparableMin(IValueExtractor, IComparer)

Construct a ComparableMin aggregator.

Declaration
public ComparableMin(IValueExtractor extractor, IComparer comparer)
Parameters
Type Name Description
IValueExtractor extractor

The extractor that provides an object to be compared.

IComparer comparer

The comparer used to compare the extracted object.

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.