Class LRUQueryCache.CacheAndCount

java.lang.Object
org.apache.lucene.search.LRUQueryCache.CacheAndCount
All Implemented Interfaces:
Accountable
Enclosing class:
LRUQueryCache

protected static class LRUQueryCache.CacheAndCount extends Object implements Accountable
Cache of doc ids with a count.
  • Field Details

  • Constructor Details

    • CacheAndCount

      public CacheAndCount(DocIdSet cache, int count)
  • Method Details

    • iterator

      public DocIdSetIterator iterator() throws IOException
      Throws:
      IOException
    • count

      public int count()
    • ramBytesUsed

      public long ramBytesUsed()
      Description copied from interface: Accountable
      Returns an estimate of the JVM heap memory used by this object in bytes. The method name uses "ram" for historical reasons; only JVM heap memory should be reported. Off-heap resources such as memory-mapped files or native direct buffers should not be included. Negative values are illegal.
      Specified by:
      ramBytesUsed in interface Accountable