com.bigdata.btree.proc
Class AbstractKeyArrayIndexProcedure.ResultBitBufferCounter
java.lang.Object
com.bigdata.btree.proc.AbstractKeyArrayIndexProcedure.ResultBitBufferCounter
- All Implemented Interfaces:
- IResultHandler<AbstractKeyArrayIndexProcedure.ResultBitBuffer,Long>
- Enclosing class:
- AbstractKeyArrayIndexProcedure
public static class AbstractKeyArrayIndexProcedure.ResultBitBufferCounter
- extends Object
- implements IResultHandler<AbstractKeyArrayIndexProcedure.ResultBitBuffer,Long>
Counts the #of true bits in the AbstractKeyArrayIndexProcedure.ResultBitBuffer(s).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractKeyArrayIndexProcedure.ResultBitBufferCounter
public AbstractKeyArrayIndexProcedure.ResultBitBufferCounter()
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,Long>
- Parameters:
result - The result from applying the procedure to a single index
partition.split - The Split that generated that result.
getResult
public Long getResult()
- The #of
true values observed in the aggregated
AbstractKeyArrayIndexProcedure.ResultBitBuffers.
- Specified by:
getResult in interface IResultHandler<AbstractKeyArrayIndexProcedure.ResultBitBuffer,Long>
Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.