org.apache.lucene.search

Class LRUQueryCache

    • Constructor Summary

      Constructors 
      Constructor and Description
      LRUQueryCache(int maxSize, long maxRamBytesUsed)
      Create a new instance that will cache at most maxSize queries with at most maxRamBytesUsed bytes of memory.
      LRUQueryCache(int maxSize, long maxRamBytesUsed, Predicate<LeafReaderContext> leavesToCache)
      Expert: Create a new instance that will cache at most maxSize queries with at most maxRamBytesUsed bytes of memory, only on leaves that satisfy leavesToCache;