Package org.redisson.mapreduce
Class RedissonMapReduce<KIn,VIn,KOut,VOut>
java.lang.Object
org.redisson.mapreduce.RedissonMapReduce<KIn,VIn,KOut,VOut>
- Type Parameters:
KIn
- input key typeVIn
- input value typeKOut
- output key typeVOut
- output value type
- All Implemented Interfaces:
RMapReduce<KIn,
,VIn, KOut, VOut> RMapReduceExecutor<VIn,
KOut, VOut>
public class RedissonMapReduce<KIn,VIn,KOut,VOut>
extends Object
implements RMapReduce<KIn,VIn,KOut,VOut>
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorDescriptionRedissonMapReduce
(RObject object, RedissonClient redisson, CommandAsyncExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
execute()
Executes MapReduce process across Redisson Nodesvoid
Executes MapReduce process across Redisson Nodes and stores result in map withresultMapName
<R> R
Executes MapReduce process across Redisson Nodes and collides result using definedcollator
Executes MapReduce process across Redisson Nodes in asynchronous modeexecuteAsync
(String resultMapName) Executes MapReduce process across Redisson Nodes in asynchronous mode and stores result in map withresultMapName
<R> RFuture
<R> executeAsync
(RCollator<KOut, VOut, R> collator) Executes MapReduce process across Redisson Nodes in asynchronous mode and collides result using definedcollator
Setup Mapper objectSetup Reducer objectDefines timeout for MapReduce process.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.redisson.api.mapreduce.RMapReduceExecutor
execute, execute, execute, executeAsync, executeAsync, executeAsync
-
Constructor Details
-
RedissonMapReduce
public RedissonMapReduce(RObject object, RedissonClient redisson, CommandAsyncExecutor commandExecutor)
-
-
Method Details
-
timeout
Description copied from interface:RMapReduce
Defines timeout for MapReduce process.0
means infinity timeout. -
mapper
Description copied from interface:RMapReduce
Setup Mapper object -
reducer
Description copied from interface:RMapReduce
Setup Reducer object -
createTask
-
check
-
execute
Description copied from interface:RMapReduceExecutor
Executes MapReduce process across Redisson Nodes- Specified by:
execute
in interfaceRMapReduceExecutor<M,
VIn, KOut> - Returns:
- map containing reduced keys and values
-
executeAsync
Description copied from interface:RMapReduceExecutor
Executes MapReduce process across Redisson Nodes in asynchronous mode- Specified by:
executeAsync
in interfaceRMapReduceExecutor<M,
VIn, KOut> - Returns:
- map containing reduced keys and values
-
execute
Description copied from interface:RMapReduceExecutor
Executes MapReduce process across Redisson Nodes and stores result in map withresultMapName
- Specified by:
execute
in interfaceRMapReduceExecutor<M,
VIn, KOut> - Parameters:
resultMapName
- - destination map name
-
executeAsync
Description copied from interface:RMapReduceExecutor
Executes MapReduce process across Redisson Nodes in asynchronous mode and stores result in map withresultMapName
- Specified by:
executeAsync
in interfaceRMapReduceExecutor<M,
VIn, KOut> - Parameters:
resultMapName
- - destination map name- Returns:
- void
-
execute
Description copied from interface:RMapReduceExecutor
Executes MapReduce process across Redisson Nodes and collides result using definedcollator
- Specified by:
execute
in interfaceRMapReduceExecutor<M,
VIn, KOut> - Type Parameters:
R
- result type- Parameters:
collator
- applied to result- Returns:
- collated result
-
executeAsync
Description copied from interface:RMapReduceExecutor
Executes MapReduce process across Redisson Nodes in asynchronous mode and collides result using definedcollator
- Specified by:
executeAsync
in interfaceRMapReduceExecutor<M,
VIn, KOut> - Type Parameters:
R
- result type- Parameters:
collator
- applied to result- Returns:
- collated result
-