com.sun.labs.minion.retrieval.cache
Class DocCache
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
com.sun.labs.minion.util.LRACache<java.lang.String,DocCacheElement>
com.sun.labs.minion.retrieval.cache.DocCache
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,DocCacheElement>
public class DocCache
- extends LRACache<java.lang.String,DocCacheElement>
An LRA cache of terms and their associated postings.
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Methods inherited from class java.util.LinkedHashMap |
clear, containsValue, get |
| Methods inherited from class java.util.HashMap |
clone, containsKey, entrySet, isEmpty, keySet, put, 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, put, putAll, remove, size, values |
engine
protected SearchEngine engine
wf
protected WeightingFunction wf
wc
protected WeightingComponents wc
m
protected java.util.Map<DiskPartition,DictionaryIterator> m
DocCache
public DocCache(SearchEngine engine)
DocCache
public DocCache(int size,
SearchEngine engine)
DocCache
public DocCache(int size,
SearchEngine engine,
WeightingFunction wf,
WeightingComponents wc)
get
public DocCacheElement get(java.lang.String key,
java.lang.String field,
DiskPartition p)
get
public DocCacheElement get(DocKeyEntry dke,
java.lang.String field,
DiskPartition p)
getWeightingComponents
public WeightingComponents getWeightingComponents()
getWeightingFunction
public WeightingFunction getWeightingFunction()