public abstract class AbstractMapper<KIn,VIn,KOut,VOut> extends Object implements org.infinispan.distexec.mapreduce.Mapper<KIn,VIn,KOut,VOut>
| Constructor and Description |
|---|
AbstractMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
_map(KIn key,
VIn value,
org.infinispan.distexec.mapreduce.Collector<KOut,VOut> collector)
This method is in fact an internal mapping, it will be called by the map method in
case the given key matches with the context
|
protected abstract boolean |
isValid(KIn key)
Indicates if the given key matches with the current context, indeed as the cache instances are
shared it is needed to check each key to know if it is part of the targeted scope or not.
|
void |
map(KIn key,
VIn value,
org.infinispan.distexec.mapreduce.Collector<KOut,VOut> collector) |
public void map(KIn key, VIn value, org.infinispan.distexec.mapreduce.Collector<KOut,VOut> collector)
protected abstract void _map(KIn key, VIn value, org.infinispan.distexec.mapreduce.Collector<KOut,VOut> collector)
protected abstract boolean isValid(KIn key)
key - the key to checktrue if the key matches with the scope, false otherwise.Copyright © 2017 eXo Platform SAS. All Rights Reserved.