CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.util.aggregator
Class GroupAggregator.Parallel

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.GroupAggregator
                  extended by com.tangosol.util.aggregator.GroupAggregator.Parallel
All Implemented Interfaces:
ExternalizableLite, PortableObject, InvocableMap.EntryAggregator, InvocableMap.ParallelAwareAggregator, Serializable
Enclosing class:
GroupAggregator

public static class GroupAggregator.Parallel
extends GroupAggregator
implements InvocableMap.ParallelAwareAggregator

Parallel implementation of the GroupAggregator.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.tangosol.util.aggregator.GroupAggregator
GroupAggregator.Parallel
 
Field Summary
 
Fields inherited from class com.tangosol.util.aggregator.GroupAggregator
m_aggregator, m_extractor, m_filter
 
Constructor Summary
  GroupAggregator.Parallel()
          Default constructor (necessary for the ExternalizableLite interface).
protected GroupAggregator.Parallel(ValueExtractor extractor, InvocableMap.ParallelAwareAggregator aggregator, Filter filter)
          Construct a Parallel aggregator based on a specified ValueExtractor and underlying ParallelAwareAggregator.
 
Method Summary
 Object aggregateResults(Collection collResults)
          Aggregate the results of the parallel aggregations.
 InvocableMap.EntryAggregator getParallelAggregator()
          Get an aggregator that can take the place of this aggregator in situations in which the InvocableMap can aggregate in parallel.
 
Methods inherited from class com.tangosol.util.aggregator.GroupAggregator
aggregate, createInstance, createInstance, createInstance, createInstance, equals, getAggregator, getExtractor, 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
 
Methods inherited from interface com.tangosol.util.InvocableMap.EntryAggregator
aggregate
 

Constructor Detail

GroupAggregator.Parallel

public GroupAggregator.Parallel()
Default constructor (necessary for the ExternalizableLite interface).


GroupAggregator.Parallel

protected GroupAggregator.Parallel(ValueExtractor extractor,
                                   InvocableMap.ParallelAwareAggregator aggregator,
                                   Filter filter)
Construct a Parallel aggregator based on a specified ValueExtractor and underlying ParallelAwareAggregator.

Parameters:
extractor - a ValueExtractor object; may not be null
aggregator - an EntryAggregator object; may not be null
Method Detail

getParallelAggregator

public InvocableMap.EntryAggregator getParallelAggregator()
Get an aggregator that can take the place of this aggregator in situations in which the InvocableMap can aggregate in parallel.

Specified by:
getParallelAggregator in interface InvocableMap.ParallelAwareAggregator
Returns:
the aggregator that will be run in parallel

aggregateResults

public Object aggregateResults(Collection collResults)
Aggregate the results of the parallel aggregations.

Specified by:
aggregateResults in interface InvocableMap.ParallelAwareAggregator
Returns:
the aggregation of the parallel aggregation results

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation