com.bigdata.btree.proc
Class ListResultAggregator<R,A extends List<R>>

java.lang.Object
  extended by com.bigdata.btree.proc.ListResultAggregator<R,A>
Type Parameters:
R -
A -
All Implemented Interfaces:
IResultHandler<R,A>

public class ListResultAggregator<R,A extends List<R>>
extends Object
implements IResultHandler<R,A>

Aggregates result into a list of results.

Version:
$Id: ListResultAggregator.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Constructor Summary
ListResultAggregator()
           
 
Method Summary
 void aggregate(R result, Split split)
          Method is invoked for each result and is responsible for combining the results in whatever manner is meaningful for the procedure.
 A getResult()
          Return the aggregated results as an implementation dependent object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListResultAggregator

public ListResultAggregator()
Method Detail

aggregate

public void aggregate(R result,
                      Split split)
Description copied from interface: IResultHandler
Method is invoked for each result and is responsible for combining the results in whatever manner is meaningful for the procedure. Implementations of this method MUST be thread-safe since the procedure MAY be applied in parallel when it spans more than one index partition.

Specified by:
aggregate in interface IResultHandler<R,A extends List<R>>
Parameters:
result - The result from applying the procedure to a single index partition.
split - The Split that generated that result.

getResult

public A getResult()
Description copied from interface: IResultHandler
Return the aggregated results as an implementation dependent object.

Specified by:
getResult in interface IResultHandler<R,A extends List<R>>


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.