Package org.apache.lucene.search
Class LRUQueryCache.CacheAndCount
java.lang.Object
org.apache.lucene.search.LRUQueryCache.CacheAndCount
- All Implemented Interfaces:
Accountable
- Enclosing class:
- LRUQueryCache
Cache of doc ids with a count.
-
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
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
-
EMPTY
-
-
Constructor Details
-
CacheAndCount
-
-
Method Details
-
iterator
- Throws:
IOException
-
count
public int count() -
ramBytesUsed
public long ramBytesUsed()Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsed
in interfaceAccountable
-