com.bigdata.btree.proc
Class BooleanORAggregator
java.lang.Object
com.bigdata.btree.proc.BooleanORAggregator
- All Implemented Interfaces:
- IResultHandler<Boolean,Boolean>
public class BooleanORAggregator
- extends Object
- implements IResultHandler<Boolean,Boolean>
Combines together boolean values using a logical OR. The
result will be true if any of the
component results was true.
- Version:
- $Id: BooleanORAggregator.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
|
Method Summary |
void |
aggregate(Boolean result,
Split split)
Method is invoked for each result and is responsible for combining
the results in whatever manner is meaningful for the procedure. |
Boolean |
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 |
BooleanORAggregator
public BooleanORAggregator()
aggregate
public void aggregate(Boolean 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<Boolean,Boolean>
- Parameters:
result - The result from applying the procedure to a single index
partition.split - The Split that generated that result.
getResult
public Boolean getResult()
- Description copied from interface:
IResultHandler
- Return the aggregated results as an implementation dependent object.
- Specified by:
getResult in interface IResultHandler<Boolean,Boolean>
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.