public interface MapReduceManager
This interface should never be implemented by clients.
Modifier and Type | Method and Description |
---|---|
ExecutorService |
getExecutorService()
ExecutorService provided for local task execution
|
<KIn,VIn,KOut,VOut> |
mapAndCombineForDistributedReduction(MapCombineCommand<KIn,VIn,KOut,VOut> mcc)
Invoked when MapCombineCommand arrives to a target Infinispan node and returns set of
intermediate keys that needs to be reduced.
|
<KIn,VIn,KOut,VOut> |
mapAndCombineForLocalReduction(MapCombineCommand<KIn,VIn,KOut,VOut> mcc)
Invoked when MapCombineCommand arrives to a target Infinispan node and returns map of resulting
values that need to be reduced.
|
<T> Map<Address,List<T>> |
mapKeysToNodes(DistributionManager dm,
String taskId,
Collection<T> keysToMap)
Maps Map/Reduce task intermediate or input keys to nodes on Infinispan cluster
|
<KOut,VOut> |
reduce(ReduceCommand<KOut,VOut> reducer)
Invoked when ReduceCommand arrives to a target Infinispan node.
|
<KOut,VOut> |
reduce(ReduceCommand<KOut,VOut> reducer,
String resultCache)
Invoked when ReduceCommand arrives to a target Infinispan node.
|
<KIn,VIn,KOut,VOut> Set<KOut> mapAndCombineForDistributedReduction(MapCombineCommand<KIn,VIn,KOut,VOut> mcc) throws InterruptedException
mcc
- MapCombineCommand sent from MapReduceTaskInterruptedException
<KIn,VIn,KOut,VOut> Map<KOut,List<VOut>> mapAndCombineForLocalReduction(MapCombineCommand<KIn,VIn,KOut,VOut> mcc) throws InterruptedException
Unlike mapAndCombineForDistributedReduction(MapCombineCommand)
implementations should return a map Map
mcc
- MapCombineCommand sent from MapReduceTaskInterruptedException
<KOut,VOut> Map<KOut,VOut> reduce(ReduceCommand<KOut,VOut> reducer) throws InterruptedException
reducer
- ReduceCommand sent from MapReduceTaskInterruptedException
<KOut,VOut> void reduce(ReduceCommand<KOut,VOut> reducer, String resultCache) throws InterruptedException
reducer
- ReduceCommand sent from MapReduceTaskresultCache
- result cache to store results of reduce phaseInterruptedException
<T> Map<Address,List<T>> mapKeysToNodes(DistributionManager dm, String taskId, Collection<T> keysToMap)
dm
- distribution manager to use for locating keys on hash wheeltaskId
- id of the map/reduce taskkeysToMap
- list of input keys to locate in the clusterExecutorService getExecutorService()
ExecutorService
for local tasksCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.