Class XLRUQueryCache.CacheAndCount

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

protected static class XLRUQueryCache.CacheAndCount extends Object implements org.apache.lucene.util.Accountable
Cache of doc ids with a count.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final XLRUQueryCache.CacheAndCount
     

    Fields inherited from interface org.apache.lucene.util.Accountable

    NULL_ACCOUNTABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CacheAndCount(org.apache.lucene.search.DocIdSet cache, int count)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    org.apache.lucene.search.DocIdSetIterator
     
    long
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.lucene.util.Accountable

    getChildResources
  • Field Details

  • Constructor Details

    • CacheAndCount

      public CacheAndCount(org.apache.lucene.search.DocIdSet cache, int count)
  • Method Details

    • iterator

      public org.apache.lucene.search.DocIdSetIterator iterator() throws IOException
      Throws:
      IOException
    • count

      public int count()
    • ramBytesUsed

      public long ramBytesUsed()
      Specified by:
      ramBytesUsed in interface org.apache.lucene.util.Accountable