Package org.redisson.api.mapreduce
Interface RMapper<KIn,VIn,KOut,VOut>
-
- Type Parameters:
KIn
- input keyVIn
- input valueKOut
- output keyVOut
- output value
- All Superinterfaces:
Serializable
public interface RMapper<KIn,VIn,KOut,VOut> extends Serializable
Mapper task invoked during map phase of MapReduce process and launched across Redisson Nodes. Every task stores transformed result of input key/value intoRCollector
instance. Collected results are handled byRReducer
instance once all Mapper tasks have finished.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
map(KIn key, VIn value, RCollector<KOut,VOut> collector)
Invoked for each Map source entry
-
-
-
Method Detail
-
map
void map(KIn key, VIn value, RCollector<KOut,VOut> collector)
Invoked for each Map source entry- Parameters:
key
- - input keyvalue
- - input valuecollector
- - instance shared across all Mapper tasks
-
-