Class DistributedExoCache.GetEntriesMapper<K,V>
java.lang.Object
org.exoplatform.services.ispn.AbstractMapper<DistributedExoCache.CacheKey<K>,V,K,V>
org.exoplatform.services.cache.impl.infinispan.distributed.DistributedExoCache.GetEntriesMapper<K,V>
- All Implemented Interfaces:
Externalizable,Serializable,org.infinispan.distexec.mapreduce.Mapper<DistributedExoCache.CacheKey<K>,V, K, V>
- Enclosing class:
DistributedExoCache<K extends Serializable,V>
public static class DistributedExoCache.GetEntriesMapper<K,V>
extends AbstractMapper<DistributedExoCache.CacheKey<K>,V,K,V>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_map(DistributedExoCache.CacheKey<K> key, V value, org.infinispan.distexec.mapreduce.Collector<K, V> 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 contextprotected booleanIndicates 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.voidvoidMethods inherited from class org.exoplatform.services.ispn.AbstractMapper
map
-
Constructor Details
-
GetEntriesMapper
public GetEntriesMapper() -
GetEntriesMapper
-
-
Method Details
-
_map
protected void _map(DistributedExoCache.CacheKey<K> key, V value, org.infinispan.distexec.mapreduce.Collector<K, V> 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- Specified by:
_mapin classAbstractMapper<DistributedExoCache.CacheKey<K>,V, K, V>
-
isValid
Description copied from class:AbstractMapperIndicates 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.- Specified by:
isValidin classAbstractMapper<DistributedExoCache.CacheKey<K>,V, KOut, VOut> - Parameters:
key- the key to check- Returns:
trueif the key matches with the scope,falseotherwise.- See Also:
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException- See Also:
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException- See Also:
-