| 
CoherenceTM v3.3  Copyright© 2000-2007 by Oracle Corporation  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.util.aggregator.AbstractAggregator
com.tangosol.util.aggregator.AbstractDoubleAggregator
com.tangosol.util.aggregator.DoubleSum
public class DoubleSum
Sums up numeric values extracted from a set of entries in a Map. All the extracted Number objects will be treated as Java double values.
| Field Summary | 
|---|
| Fields inherited from class com.tangosol.util.aggregator.AbstractDoubleAggregator | 
|---|
m_count, m_dflResult | 
| Fields inherited from class com.tangosol.util.aggregator.AbstractAggregator | 
|---|
m_fParallel | 
| Constructor Summary | |
|---|---|
DoubleSum()
Default constructor (necessary for the ExternalizableLite interface).  | 
|
DoubleSum(String sMethod)
Construct a DoubleSum aggregator.  | 
|
DoubleSum(ValueExtractor extractor)
Construct a DoubleSum aggregator.  | 
|
| Method Summary | |
|---|---|
protected  void | 
init(boolean fFinal)
Initialize the aggregation result.  | 
protected  void | 
process(Object o,
        boolean fFinal)
Incorporate one aggregatable value into the result.  | 
| Methods inherited from class com.tangosol.util.aggregator.AbstractDoubleAggregator | 
|---|
finalizeResult | 
| 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 | 
| Constructor Detail | 
|---|
public DoubleSum()
public DoubleSum(ValueExtractor extractor)
extractor - the extractor that provides a value in the form of
                   any Java object that is a Numberpublic DoubleSum(String sMethod)
sMethod - the name of the method that returns a value in the form
                 of any Java object that is a Number| Method Detail | 
|---|
protected void init(boolean fFinal)
init in class AbstractDoubleAggregatorfFinal - 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
protected void process(Object o,
                       boolean fFinal)
InvocableMap.Entry.
process in class AbstractAggregatoro - the value to incorporate into the aggregated resultfFinal - true to indicate that the given object is a partial
                result returned by a parallel aggregator
  | 
CoherenceTM v3.3  Copyright© 2000-2007 by Oracle Corporation  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||