|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
R - The type of the result from applying the procedure to a single
Split of data.A - The type of the aggregated result.public interface IResultHandler<R,A>
An interface for handling results obtained when an IIndexProcedure is
applied to either a unitary index or to partitions of a scale-out index.
getResult() from the signature? The handler
implementation can expose a custom method when an aggregated return is
desirable. However some handlers will apply iterative processing to the
results as they are obtained without any sense of aggregation.| 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. |
| Method Detail |
|---|
void aggregate(R result,
Split split)
result - The result from applying the procedure to a single index
partition.split - The Split that generated that result.A getResult()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||