com.bigdata.btree.proc
Class AbstractKeyArrayIndexProcedure.ResultBitBufferHandler

java.lang.Object
  extended by com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure.ResultBitBufferHandler
All Implemented Interfaces:
IResultHandler<AbstractKeyArrayIndexProcedure.ResultBitBuffer,AbstractKeyArrayIndexProcedure.ResultBitBuffer>
Enclosing class:
AbstractKeyArrayIndexProcedure

public static class AbstractKeyArrayIndexProcedure.ResultBitBufferHandler
extends Object
implements IResultHandler<AbstractKeyArrayIndexProcedure.ResultBitBuffer,AbstractKeyArrayIndexProcedure.ResultBitBuffer>

Knows how to aggregate AbstractKeyArrayIndexProcedure.ResultBitBuffer objects.


Constructor Summary
AbstractKeyArrayIndexProcedure.ResultBitBufferHandler(int nkeys)
           
 
Method Summary
 void aggregate(AbstractKeyArrayIndexProcedure.ResultBitBuffer result, Split split)
          Method is invoked for each result and is responsible for combining the results in whatever manner is meaningful for the procedure.
 AbstractKeyArrayIndexProcedure.ResultBitBuffer getResult()
          The aggregated results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractKeyArrayIndexProcedure.ResultBitBufferHandler

public AbstractKeyArrayIndexProcedure.ResultBitBufferHandler(int nkeys)
Method Detail

aggregate

public void aggregate(AbstractKeyArrayIndexProcedure.ResultBitBuffer 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<AbstractKeyArrayIndexProcedure.ResultBitBuffer,AbstractKeyArrayIndexProcedure.ResultBitBuffer>
Parameters:
result - The result from applying the procedure to a single index partition.
split - The Split that generated that result.

getResult

public AbstractKeyArrayIndexProcedure.ResultBitBuffer getResult()
The aggregated results.

Specified by:
getResult in interface IResultHandler<AbstractKeyArrayIndexProcedure.ResultBitBuffer,AbstractKeyArrayIndexProcedure.ResultBitBuffer>


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