Save This Page
Home » lucene-3.0.1-src » org.apache » lucene » util » cache » [javadoc | source]
org.apache.lucene.util.cache
public class: SimpleMapCache [javadoc | source]
java.lang.Object
   org.apache.lucene.util.cache.Cache<K, V>
      org.apache.lucene.util.cache.SimpleMapCache

All Implemented Interfaces:
    Closeable

Direct Known Subclasses:
    SimpleLRUCache, SynchronizedSimpleMapCache

Simple cache implementation that uses a HashMap to store (key, value) pairs. This cache is not synchronized, use Cache#synchronizedCache(Cache) if needed.
Field Summary
protected  Map<K, V> map     
Constructor:
 public SimpleMapCache() 
 public SimpleMapCache(Map<K, V> map) 
Method from org.apache.lucene.util.cache.SimpleMapCache Summary:
close,   containsKey,   get,   getSynchronizedCache,   keySet,   put
Methods from org.apache.lucene.util.cache.Cache:
close,   containsKey,   get,   getSynchronizedCache,   put,   synchronizedCache
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.util.cache.SimpleMapCache Detail:
 public  void close() 
 public boolean containsKey(Object key) 
 public V get(Object key) 
 Cache<K, V> getSynchronizedCache() 
 public Set<K> keySet() 
    Returns a Set containing all keys in this cache.
 public  void put(K key,
    V value)