Package org.redisson.mapreduce
Class RedissonCollectionMapReduce<VIn,KOut,VOut>
java.lang.Object
org.redisson.mapreduce.RedissonCollectionMapReduce<VIn,KOut,VOut>
- Type Parameters:
VIn
- input value typeKOut
- output key typeVOut
- output value type
- All Implemented Interfaces:
RCollectionMapReduce<VIn,
,KOut, VOut> RMapReduceExecutor<VIn,
KOut, VOut>
public class RedissonCollectionMapReduce<VIn,KOut,VOut>
extends Object
implements RCollectionMapReduce<VIn,KOut,VOut>
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorDescriptionRedissonCollectionMapReduce
(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
mapper
(RCollectionMapper<VIn, KOut, VOut> mapper) Setup Mapper objectSetup Reducer objectDefines timeout for MapReduce processMethods 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
-
RedissonCollectionMapReduce
public RedissonCollectionMapReduce(RObject object, RedissonClient redisson, CommandAsyncExecutor commandExecutor)
-
-
Method Details
-
timeout
Description copied from interface:RCollectionMapReduce
Defines timeout for MapReduce process- Specified by:
timeout
in interfaceRCollectionMapReduce<VIn,
KOut, VOut> - Parameters:
timeout
- for processunit
- of timeout- Returns:
- self instance
-
mapper
Description copied from interface:RCollectionMapReduce
Setup Mapper object- Specified by:
mapper
in interfaceRCollectionMapReduce<VIn,
KOut, VOut> - Parameters:
mapper
- used during MapReduce- Returns:
- self instance
-
reducer
Description copied from interface:RCollectionMapReduce
Setup Reducer object- Specified by:
reducer
in interfaceRCollectionMapReduce<VIn,
KOut, VOut> - Parameters:
reducer
- used during MapReduce- Returns:
- self instance
-
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
-