|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.util.aggregator.AbstractAggregator
com.tangosol.util.aggregator.AbstractLongAggregator
public abstract class AbstractLongAggregator
Abstract aggregator that processes numeric values extracted from a set of entries in a Map. All the extracted Number objects will be treated as Java long values and the result of the aggregator is a Long. If the set of entries is empty, a null result is returned.
Field Summary | |
---|---|
protected int |
m_count The count of processed entries. |
protected long |
m_lResult The running result value. |
Fields inherited from class com.tangosol.util.aggregator.AbstractAggregator |
---|
m_fParallel |
Constructor Summary | |
---|---|
AbstractLongAggregator() Default constructor (necessary for the ExternalizableLite interface). |
|
AbstractLongAggregator(String sMethod) Construct an AbstractLongAggregator object. |
|
AbstractLongAggregator(ValueExtractor extractor) Construct an AbstractLongAggregator object. |
Method Summary | |
---|---|
protected Object |
finalizeResult(boolean fFinal) Obtain the result of the aggregation. |
protected void |
init(boolean fFinal) Initialize the aggregation result. |
Methods inherited from class com.tangosol.util.aggregator.AbstractAggregator |
---|
aggregate, aggregateResults, equals, getParallelAggregator, getValueExtractor, hashCode, process, processEntry, 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 |
Field Detail |
---|
protected transient int m_count
protected transient long m_lResult
Constructor Detail |
---|
public AbstractLongAggregator()
public AbstractLongAggregator(ValueExtractor extractor)
extractor
- the extractor that provides a value in the form of any Java object that is a Number
public AbstractLongAggregator(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 AbstractAggregator
fFinal
- 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 initializedprotected Object finalizeResult(boolean fFinal)
finalizeResult
in class AbstractAggregator
fFinal
- true to indicate that the final result of the aggregation process should be returned; this will only be false if a parallel approach is being used
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |