org.apache.accumulo.examples.wikisearch.ingest
Class LRUOutputCombiner<Key,Value>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<Key,Value>
              extended by org.apache.accumulo.examples.wikisearch.ingest.LRUOutputCombiner<Key,Value>
All Implemented Interfaces:
Serializable, Cloneable, Map<Key,Value>

public class LRUOutputCombiner<Key,Value>
extends LinkedHashMap<Key,Value>

See Also:
Serialized Form

Nested Class Summary
static class LRUOutputCombiner.Fold<Value>
           
static class LRUOutputCombiner.Output<Key,Value>
           
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
LRUOutputCombiner(int capacity, LRUOutputCombiner.Fold<Value> fold, LRUOutputCombiner.Output<Key,Value> output)
           
 
Method Summary
 void flush()
           
 Value put(Key key, Value value)
           
protected  boolean removeEldestEntry(Map.Entry<Key,Value> eldest)
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Constructor Detail

LRUOutputCombiner

public LRUOutputCombiner(int capacity,
                         LRUOutputCombiner.Fold<Value> fold,
                         LRUOutputCombiner.Output<Key,Value> output)
Method Detail

removeEldestEntry

protected boolean removeEldestEntry(Map.Entry<Key,Value> eldest)
Overrides:
removeEldestEntry in class LinkedHashMap<Key,Value>

put

public Value put(Key key,
                 Value value)
Specified by:
put in interface Map<Key,Value>
Overrides:
put in class HashMap<Key,Value>

flush

public void flush()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.