277 |
|
* } |
278 |
|
* public void onCompletion(CountedCompleter<?> caller) { |
279 |
|
* if (caller != this) { |
280 |
< |
* MapReducer<E> child = (MapReducer<E>)caller; |
281 |
< |
* MapReducer<E> sib = child.sibling; |
282 |
< |
* if (sib == null || sib.result == null) |
283 |
< |
* result = child.result; |
284 |
< |
* else |
285 |
< |
* result = reducer.apply(child.result, sib.result); |
280 |
> |
* MapReducer<E> child = (MapReducer<E>)caller; |
281 |
> |
* MapReducer<E> sib = child.sibling; |
282 |
> |
* if (sib == null || sib.result == null) |
283 |
> |
* result = child.result; |
284 |
> |
* else |
285 |
> |
* result = reducer.apply(child.result, sib.result); |
286 |
|
* } |
287 |
|
* } |
288 |
|
* public E getRawResult() { return result; } |