private static final class MapReduceManagerImpl.DefaultCollector<KOut,VOut> extends java.lang.Object implements MapReduceManagerImpl.CollectableCollector<KOut,VOut>
Modifier and Type | Field and Description |
---|---|
private boolean |
atomicEmit |
private java.util.concurrent.atomic.AtomicInteger |
emitCount |
private java.util.Map<KOut,java.util.List<VOut>> |
store |
Constructor and Description |
---|
MapReduceManagerImpl.DefaultCollector(boolean atomicEmit) |
MapReduceManagerImpl.DefaultCollector(int size,
boolean atomicEmit) |
Modifier and Type | Method and Description |
---|---|
void |
emit(KOut key,
VOut value)
Intermediate key/value callback used by
Mapper implementor |
protected void |
emitHelper(KOut key,
VOut value) |
java.util.Map<KOut,java.util.List<VOut>> |
removeCollectedValues() |
java.util.Map<KOut,java.util.List<VOut>> |
removeLRUEntry() |
int |
size() |
private final boolean atomicEmit
private final java.util.concurrent.atomic.AtomicInteger emitCount
public MapReduceManagerImpl.DefaultCollector(int size, boolean atomicEmit)
public MapReduceManagerImpl.DefaultCollector(boolean atomicEmit)
public void emit(KOut key, VOut value)
Collector
Mapper
implementorpublic java.util.Map<KOut,java.util.List<VOut>> removeCollectedValues()
removeCollectedValues
in interface MapReduceManagerImpl.CollectableCollector<KOut,VOut>
public java.util.Map<KOut,java.util.List<VOut>> removeLRUEntry()
removeLRUEntry
in interface MapReduceManagerImpl.CollectableCollector<KOut,VOut>
public int size()