private final class MapReduceManagerImpl.MapCombineTask<K,V,KOut,VOut> extends MapReduceManagerImpl.DataContainerTask<K,V> implements org.infinispan.persistence.spi.AdvancedCacheLoader.CacheLoaderTask
Modifier and Type | Field and Description |
---|---|
(package private) MapReduceManagerImpl.DefaultCollector<KOut,VOut> |
collector |
(package private) java.util.Set<KOut> |
intermediateKeys |
(package private) int |
maxCollectorSize |
(package private) org.infinispan.commands.read.MapCombineCommand<K,V,KOut,VOut> |
mcc |
Constructor and Description |
---|
MapReduceManagerImpl.MapCombineTask(MapReduceManagerImpl.DefaultCollector<KOut,VOut> collector,
org.infinispan.commands.read.MapCombineCommand<K,V,KOut,VOut> mcc,
int maxCollectorSize) |
Modifier and Type | Method and Description |
---|---|
void |
apply(java.lang.Object key,
org.infinispan.container.entries.InternalCacheEntry v) |
protected void |
combineAndMigrate() |
java.util.Set<KOut> |
getIntermediateKeys() |
(package private) V |
getValue(org.infinispan.container.entries.InternalCacheEntry entry) |
private java.lang.Object |
getValue(org.infinispan.marshall.core.MarshalledEntry marshalledEntry) |
void |
processEntry(org.infinispan.marshall.core.MarshalledEntry marshalledEntry,
org.infinispan.persistence.spi.AdvancedCacheLoader.TaskContext taskContext) |
MapReduceManagerImpl.DefaultCollector<KOut,VOut> collector
java.util.Set<KOut> intermediateKeys
int maxCollectorSize
public java.util.Set<KOut> getIntermediateKeys()
V getValue(org.infinispan.container.entries.InternalCacheEntry entry)
getValue
in class MapReduceManagerImpl.DataContainerTask<K,V>
public void apply(java.lang.Object key, org.infinispan.container.entries.InternalCacheEntry v)
apply
in interface ParallelIterableMap.KeyValueAction<java.lang.Object,org.infinispan.container.entries.InternalCacheEntry>
protected void combineAndMigrate() throws CacheException
CacheException
public void processEntry(org.infinispan.marshall.core.MarshalledEntry marshalledEntry, org.infinispan.persistence.spi.AdvancedCacheLoader.TaskContext taskContext) throws java.lang.InterruptedException
processEntry
in interface org.infinispan.persistence.spi.AdvancedCacheLoader.CacheLoaderTask
marshalledEntry
- an iterated entry. Note that MarshalledEntry.getValue()
might be null if the fetchValue parameter passed to AdvancedCacheLoader.process(KeyFilter,
org.infinispan.persistence.spi.AdvancedCacheLoader.CacheLoaderTask,
java.util.concurrent.Executor, boolean, boolean)
is false.taskContext
- allows the implementors to decide when to stop the iteration by invoking AdvancedCacheLoader.TaskContext.stop()
java.lang.InterruptedException
private java.lang.Object getValue(org.infinispan.marshall.core.MarshalledEntry marshalledEntry)