Class AbstractCachingDictionary

java.lang.Object
net.didion.jwnl.dictionary.Dictionary
net.didion.jwnl.dictionary.AbstractCachingDictionary
All Implemented Interfaces:
Installable
Direct Known Subclasses:
DatabaseBackedDictionary, FileBackedDictionary

public abstract class AbstractCachingDictionary extends Dictionary
Extends Dictionary to provide caching of elements.
  • Constructor Details

    • AbstractCachingDictionary

      protected AbstractCachingDictionary()
    • AbstractCachingDictionary

      protected AbstractCachingDictionary(boolean enableCaching)
    • AbstractCachingDictionary

      protected AbstractCachingDictionary(MorphologicalProcessor morph)
    • AbstractCachingDictionary

      protected AbstractCachingDictionary(MorphologicalProcessor morph, boolean enableCaching)
  • Method Details

    • isCachingEnabled

      public boolean isCachingEnabled()
    • setCachingEnabled

      public void setCachingEnabled(boolean cachingEnabled)
    • getCacheSizes

      public int getCacheSizes(DictionaryElementType type)
    • getCacheCapacity

      public int getCacheCapacity(DictionaryElementType type)
    • setCacheCapacity

      public void setCacheCapacity(int size)
    • setCacheCapacity

      public void setCacheCapacity(DictionaryElementType type, int size)
    • clearCache

      public void clearCache()
    • clearCache

      public void clearCache(DictionaryElementType elementType)
    • cacheIndexWord

      protected void cacheIndexWord(POSKey key, IndexWord word)
    • getCachedIndexWord

      protected IndexWord getCachedIndexWord(POSKey key)
    • cacheSynset

      protected void cacheSynset(POSKey key, Synset synset)
    • getCachedSynset

      protected Synset getCachedSynset(POSKey key)
    • cacheException

      protected void cacheException(POSKey key, Exc exception)
    • getCachedException

      protected Exc getCachedException(POSKey key)