java.lang.Object
org.apache.lucene.search.LRUQueryCache.LeafCache
- All Implemented Interfaces:
Accountable
- Enclosing class:
- LRUQueryCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Query,
LRUQueryCache.CacheAndCount> private final Object
private long
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) LRUQueryCache.CacheAndCount
private void
onDocIdSetCache
(long ramBytesUsed) private void
onDocIdSetEviction
(long ramBytesUsed) (package private) void
putIfAbsent
(Query query, LRUQueryCache.CacheAndCount cached) long
Return the memory usage of this object in bytes.(package private) void
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
-
key
-
cache
-
ramBytesUsed
private volatile long ramBytesUsed
-
-
Constructor Details
-
LeafCache
LeafCache(Object key)
-
-
Method Details
-
onDocIdSetCache
private void onDocIdSetCache(long ramBytesUsed) -
onDocIdSetEviction
private void onDocIdSetEviction(long ramBytesUsed) -
get
-
putIfAbsent
-
remove
-
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
-