private static final class AbstractCachingDictionary.DictionaryCacheSet extends CacheSet implements java.util.Observer
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
_lemmaToOffsetMaps |
DEFAULT_CACHE_CAPACITY| Constructor and Description |
|---|
DictionaryCacheSet() |
DictionaryCacheSet(int[] sizes) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheObject(DictionaryElementType fileType,
java.lang.Object key,
java.lang.Object value) |
void |
clearCache(DictionaryElementType fileType) |
protected Cache |
createCache(int size) |
java.lang.Object |
getCachedObject(DictionaryElementType fileType,
java.lang.Object key) |
private java.util.Map |
getMap(DictionaryElementType fileType) |
private void |
initLemmaToOffsetMaps() |
private void |
removeLemma(DictionaryElementType fileType,
java.lang.String lemma,
POS pos) |
void |
update(java.util.Observable obs,
java.lang.Object obj) |
addCache, addCache, cacheObject, clearCache, getCache, getCacheCapacity, getCachedObject, getCacheSize, getSize, setCacheCapacitypublic DictionaryCacheSet()
public DictionaryCacheSet(int[] sizes)
public java.lang.Object getCachedObject(DictionaryElementType fileType, java.lang.Object key)
public void cacheObject(DictionaryElementType fileType, java.lang.Object key, java.lang.Object value)
public void clearCache(DictionaryElementType fileType)
public void update(java.util.Observable obs,
java.lang.Object obj)
update in interface java.util.Observerprivate void initLemmaToOffsetMaps()
private void removeLemma(DictionaryElementType fileType, java.lang.String lemma, POS pos)
private java.util.Map getMap(DictionaryElementType fileType)
protected Cache createCache(int size)
createCache in class CacheSet