private class LRUQueryCache.LeafCache extends java.lang.Object implements Accountable
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<Query,DocIdSet> |
cache |
private java.lang.Object |
key |
private long |
ramBytesUsed |
| Constructor and Description |
|---|
LeafCache(java.lang.Object key) |
| Modifier and Type | Method and Description |
|---|---|
(package private) DocIdSet |
get(Query query) |
private void |
onDocIdSetCache(long ramBytesUsed) |
private void |
onDocIdSetEviction(long ramBytesUsed) |
(package private) void |
putIfAbsent(Query query,
DocIdSet set) |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
(package private) void |
remove(Query query) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcesprivate void onDocIdSetCache(long ramBytesUsed)
private void onDocIdSetEviction(long ramBytesUsed)
void remove(Query query)
public long ramBytesUsed()
AccountableramBytesUsed in interface Accountable