KIn
- input key typeVIn
- input value typeKOut
- output key typeVOut
- output value typepublic class RedissonMapReduce<KIn,VIn,KOut,VOut> extends Object implements RMapReduce<KIn,VIn,KOut,VOut>
Constructor and Description |
---|
RedissonMapReduce(RObject object,
RedissonClient redisson,
ConnectionManager connectionManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
check(Object task) |
protected Callable<Object> |
createTask(String resultMapName,
RCollator<KOut,VOut,Object> collator) |
Map<KOut,VOut> |
execute()
Executes MapReduce process across Redisson Nodes
|
<R> R |
execute(RCollator<KOut,VOut,R> collator)
Executes MapReduce process across Redisson Nodes
and collides result using defined
collator |
void |
execute(String resultMapName)
Executes MapReduce process across Redisson Nodes
and stores result in map with
resultMapName |
RFuture<Map<KOut,VOut>> |
executeAsync()
Executes MapReduce process across Redisson Nodes
in asynchronous mode
|
<R> RFuture<R> |
executeAsync(RCollator<KOut,VOut,R> collator)
Executes MapReduce process across Redisson Nodes
in asynchronous mode and collides result using defined
collator |
RFuture<Void> |
executeAsync(String resultMapName)
Executes MapReduce process across Redisson Nodes
in asynchronous mode and stores result in map with
resultMapName |
RMapReduce<KIn,VIn,KOut,VOut> |
mapper(RMapper<KIn,VIn,KOut,VOut> mapper)
Setup Mapper object
|
RMapReduce<KIn,VIn,KOut,VOut> |
reducer(RReducer<KOut,VOut> reducer)
Setup Reducer object
|
RMapReduce<KIn,VIn,KOut,VOut> |
timeout(long timeout,
TimeUnit unit)
Defines timeout for MapReduce process.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute, execute, executeAsync, executeAsync, executeAsync
public RedissonMapReduce(RObject object, RedissonClient redisson, ConnectionManager connectionManager)
public RMapReduce<KIn,VIn,KOut,VOut> timeout(long timeout, TimeUnit unit)
RMapReduce
0
means infinity timeout.public RMapReduce<KIn,VIn,KOut,VOut> mapper(RMapper<KIn,VIn,KOut,VOut> mapper)
RMapReduce
public RMapReduce<KIn,VIn,KOut,VOut> reducer(RReducer<KOut,VOut> reducer)
RMapReduce
protected Callable<Object> createTask(String resultMapName, RCollator<KOut,VOut,Object> collator)
protected void check(Object task)
public Map<KOut,VOut> execute()
RMapReduceExecutor
execute
in interface RMapReduceExecutor<VIn,KOut,VOut>
public RFuture<Map<KOut,VOut>> executeAsync()
RMapReduceExecutor
executeAsync
in interface RMapReduceExecutor<VIn,KOut,VOut>
public void execute(String resultMapName)
RMapReduceExecutor
resultMapName
execute
in interface RMapReduceExecutor<VIn,KOut,VOut>
resultMapName
- - destination map namepublic RFuture<Void> executeAsync(String resultMapName)
RMapReduceExecutor
resultMapName
executeAsync
in interface RMapReduceExecutor<VIn,KOut,VOut>
resultMapName
- - destination map namepublic <R> R execute(RCollator<KOut,VOut,R> collator)
RMapReduceExecutor
collator
execute
in interface RMapReduceExecutor<VIn,KOut,VOut>
R
- result typecollator
- applied to resultpublic <R> RFuture<R> executeAsync(RCollator<KOut,VOut,R> collator)
RMapReduceExecutor
collator
executeAsync
in interface RMapReduceExecutor<VIn,KOut,VOut>
R
- result typecollator
- applied to resultCopyright © 2014–2019 The Redisson Project. All rights reserved.