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
ConstructorsConstructorDescriptionRedissonMapReduce(RObject object, RedissonClient redisson, CommandAsyncExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute()Executes MapReduce process across Redisson NodesvoidExecutes MapReduce process across Redisson Nodes and stores result in map withresultMapName<R> RExecutes MapReduce process across Redisson Nodes and collides result using definedcollatorExecutes 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 definedcollatorSetup 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, waitMethods 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:RMapReduceDefines timeout for MapReduce process.0means infinity timeout. -
mapper
Description copied from interface:RMapReduceSetup Mapper object -
reducer
Description copied from interface:RMapReduceSetup Reducer object -
createTask
-
check
-
execute
Description copied from interface:RMapReduceExecutorExecutes MapReduce process across Redisson Nodes- Specified by:
executein interfaceRMapReduceExecutor<M,VIn, KOut> - Returns:
- map containing reduced keys and values
-
executeAsync
Description copied from interface:RMapReduceExecutorExecutes MapReduce process across Redisson Nodes in asynchronous mode- Specified by:
executeAsyncin interfaceRMapReduceExecutor<M,VIn, KOut> - Returns:
- map containing reduced keys and values
-
execute
Description copied from interface:RMapReduceExecutorExecutes MapReduce process across Redisson Nodes and stores result in map withresultMapName- Specified by:
executein interfaceRMapReduceExecutor<M,VIn, KOut> - Parameters:
resultMapName- - destination map name
-
executeAsync
Description copied from interface:RMapReduceExecutorExecutes MapReduce process across Redisson Nodes in asynchronous mode and stores result in map withresultMapName- Specified by:
executeAsyncin interfaceRMapReduceExecutor<M,VIn, KOut> - Parameters:
resultMapName- - destination map name- Returns:
- void
-
execute
Description copied from interface:RMapReduceExecutorExecutes MapReduce process across Redisson Nodes and collides result using definedcollator- Specified by:
executein interfaceRMapReduceExecutor<M,VIn, KOut> - Type Parameters:
R- result type- Parameters:
collator- applied to result- Returns:
- collated result
-
executeAsync
Description copied from interface:RMapReduceExecutorExecutes MapReduce process across Redisson Nodes in asynchronous mode and collides result using definedcollator- Specified by:
executeAsyncin interfaceRMapReduceExecutor<M,VIn, KOut> - Type Parameters:
R- result type- Parameters:
collator- applied to result- Returns:
- collated result
-