Oracle® Coherence Java API Reference
v3.5

E14977-01

com.tangosol.util.aggregator
Class BigDecimalMax

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.BitHelper
          extended by com.tangosol.util.ExternalizableHelper
              extended by com.tangosol.util.aggregator.AbstractAggregator
                  extended by com.tangosol.util.aggregator.AbstractBigDecimalAggregator
                      extended by com.tangosol.util.aggregator.BigDecimalMax
All Implemented Interfaces:
ExternalizableLite, PortableObject, InvocableMap.EntryAggregator, InvocableMap.ParallelAwareAggregator, java.io.Serializable

public class BigDecimalMax
extends AbstractBigDecimalAggregator

Calculates a maximum 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

Field Summary
 
Fields inherited from class com.tangosol.util.aggregator.AbstractBigDecimalAggregator
m_count, m_decResult
 
Fields inherited from class com.tangosol.util.aggregator.AbstractAggregator
m_fParallel
 
Constructor Summary
BigDecimalMax()
          Default constructor (necessary for the ExternalizableLite interface).
BigDecimalMax(java.lang.String sMethod)
          Construct a BigDecimalMax aggregator.
BigDecimalMax(ValueExtractor extractor)
          Construct a BigDecimalMax aggregator.
 
Method Summary
protected  void process(java.lang.Object o, boolean fFinal)
          Incorporate one aggregatable value into the result.
 
Methods inherited from class com.tangosol.util.aggregator.AbstractBigDecimalAggregator
ensureBigDecimal, finalizeResult, init
 
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, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString
 

Constructor Detail

BigDecimalMax

public BigDecimalMax()
Default constructor (necessary for the ExternalizableLite interface).


BigDecimalMax

public BigDecimalMax(ValueExtractor extractor)
Construct a BigDecimalMax aggregator.

Parameters:
extractor - the extractor that provides a value in the form of any Java object that is a Number

BigDecimalMax

public BigDecimalMax(java.lang.String sMethod)
Construct a BigDecimalMax aggregator.

Parameters:
sMethod - the name of the method that returns a value in the form of any Java object that is a Number
Method Detail

process

protected void process(java.lang.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 result
fFinal - true to indicate that the given object is a partial result returned by a parallel aggregator

Oracle® Coherence Java API Reference
v3.5

E14977-01

Copyright © 2000, 2009, Oracle. All rights reserved.