|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractMap<K,V>
HashMap
DocSelCache
public class DocSelCache
This class represents the contents of the Document Selector Cache maintained by the indexer. It provides for loading, saving, and searching the cache. The cache is underlain by a HashMap mapping String keys to Entry values.
Nested Class Summary | |
---|---|
(package private) static class |
DocSelCache.Entry
One entry in the docSelector cache |
Nested classes/interfaces inherited from class AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Field Summary | |
---|---|
String |
dependencies
|
HashMap<String,DocSelCache.Entry> |
map
|
boolean |
modified
|
Constructor Summary | |
---|---|
DocSelCache()
|
Method Summary | |
---|---|
void |
clear()
Delegated to underlying map. |
boolean |
containsKey(String key)
Delegated to underlying map. |
Set<Map.Entry<String,DocSelCache.Entry>> |
entrySet()
Delegated to underlying map. |
DocSelCache.Entry |
get(String key)
Delegated to underlying map. |
Set<String> |
keySet()
Delegated to underlying map. |
void |
load(File file)
Load a previously saved docSelector cache. |
DocSelCache.Entry |
put(String key,
DocSelCache.Entry value)
Delegated to underlying map. |
DocSelCache.Entry |
remove(Object key)
Delegated to underlying map. |
void |
save(File file)
Save the docSelector cache. |
int |
size()
Delegated to underlying map. |
Methods inherited from class HashMap |
---|
clone, containsKey, containsValue, get, isEmpty, put, putAll, values |
Methods inherited from class AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface Map |
---|
equals, hashCode |
Field Detail |
---|
public String dependencies
public HashMap<String,DocSelCache.Entry> map
public boolean modified
Constructor Detail |
---|
public DocSelCache()
Method Detail |
---|
public void load(File file) throws IOException
file
- The file to load from.
IOException
- If something goes wrong reading the file.public void save(File file) throws IOException
IOException
public void clear()
clear
in interface Map
clear
in class HashMap
public boolean containsKey(String key)
public DocSelCache.Entry get(String key)
public Set<String> keySet()
keySet
in interface Map
keySet
in class HashMap
public DocSelCache.Entry put(String key, DocSelCache.Entry value)
public DocSelCache.Entry remove(Object key)
remove
in interface Map
remove
in class HashMap
public int size()
size
in interface Map
size
in class HashMap
public Set<Map.Entry<String,DocSelCache.Entry>> entrySet()
entrySet
in interface Map
entrySet
in class HashMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |