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

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

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

Parallel implementation of the CompositeAggregator.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.tangosol.util.aggregator.CompositeAggregator
CompositeAggregator.Parallel
 
Field Summary
 
Fields inherited from class com.tangosol.util.aggregator.CompositeAggregator
m_aAggregator
 
Constructor Summary
  CompositeAggregator.Parallel()
          Default constructor (necessary for the ExternalizableLite interface).
protected CompositeAggregator.Parallel(InvocableMap.ParallelAwareAggregator[] aAggregator)
          Construct a CompositeParallelAggregator based on a specified EntryAggregator array.
 
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.
 void readExternal(PofReader in)
          Restore the contents of a user type instance by reading its state using the specified PofReader object.
 
Methods inherited from class com.tangosol.util.aggregator.CompositeAggregator
aggregate, createInstance, equals, getAggregators, hashCode, 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

CompositeAggregator.Parallel

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


CompositeAggregator.Parallel

protected CompositeAggregator.Parallel(InvocableMap.ParallelAwareAggregator[] aAggregator)
Construct a CompositeParallelAggregator based on a specified EntryAggregator array.

Parameters:
aAggregator - an array of ParallelAwareAggregator objects; 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

readExternal

public void readExternal(PofReader in)
                  throws IOException
Restore the contents of a user type instance by reading its state using the specified PofReader object.

Specified by:
readExternal in interface PortableObject
Overrides:
readExternal in class CompositeAggregator
Parameters:
in - the PofReader from which to read the object's state
Throws:
IOException - if an I/O error occurs

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