com.tangosol.util.aggregator
Class BigDecimalMin
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.util.aggregator.AbstractAggregator
com.tangosol.util.aggregator.AbstractBigDecimalAggregator
com.tangosol.util.aggregator.BigDecimalMin
- All Implemented Interfaces:
- ExternalizableLite, PortableObject, InvocableMap.EntryAggregator, InvocableMap.ParallelAwareAggregator, Serializable
public class BigDecimalMin
- extends AbstractBigDecimalAggregator
Calculates a minimum of numeric values extracted from a set of entries in a
Map in a form of a BigDecimal
value. All the extracted
objects will be treated as BigDecimal
,
BigInteger
or Java double values.
If the set of entries is empty, a null result is returned.
- Since:
- Coherence 3.2
- Author:
- gg 2006.07.18
Method Summary |
protected void |
process(Object o,
boolean fFinal)
Incorporate one aggregatable value into the result. |
Methods inherited from class com.tangosol.util.aggregator.AbstractAggregator |
aggregate, aggregateResults, equals, getParallelAggregator, getValueExtractor, hashCode, readExternal, readExternal, toString, writeExternal, writeExternal |
Methods inherited from class com.tangosol.util.BitHelper |
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, toBitString, toBitString, toBitString |
BigDecimalMin
public BigDecimalMin()
- Default constructor (necessary for the ExternalizableLite interface).
BigDecimalMin
public BigDecimalMin(ValueExtractor extractor)
- Construct a BigDecimalMin aggregator.
- Parameters:
extractor
- the extractor that provides a value in the form of
any Java object that is a Number
BigDecimalMin
public BigDecimalMin(String sMethod)
- Construct a BigDecimalMin aggregator.
- Parameters:
sMethod
- the name of the method that returns a value in the form
of any Java object that is a Number
process
protected void process(Object o,
boolean fFinal)
- Incorporate one aggregatable value into the result.
If the fFinal 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
InvocableMap.Entry
.
- Specified by:
process
in class AbstractAggregator
- Parameters:
o
- the value to incorporate into the aggregated resultfFinal
- true to indicate that the given object is a partial
result returned by a parallel aggregator