Class ArrayEncodedDirectMappedLmCache

java.lang.Object
edu.berkeley.nlp.lm.cache.ArrayEncodedDirectMappedLmCache
All Implemented Interfaces:
ArrayEncodedLmCache, Serializable

public final class ArrayEncodedDirectMappedLmCache extends Object implements ArrayEncodedLmCache
A direct-mapped cache. This cache does not perform any collision resolution, but rather retains only the most recent key which gets hashed to a particular bucket.
Author:
adampauls
See Also:
  • Constructor Details

    • ArrayEncodedDirectMappedLmCache

      public ArrayEncodedDirectMappedLmCache(int cacheBits, int maxNgramOrder, boolean threadSafe)
  • Method Details