abstract static class FieldCacheImpl.Cache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<java.lang.Object,java.util.Map<FieldCacheImpl.CacheKey,Accountable>> |
readerCache |
(package private) FieldCacheImpl |
wrapper |
Constructor and Description |
---|
Cache(FieldCacheImpl wrapper) |
Modifier and Type | Method and Description |
---|---|
protected abstract Accountable |
createValue(LeafReader reader,
FieldCacheImpl.CacheKey key,
boolean setDocsWithField) |
java.lang.Object |
get(LeafReader reader,
FieldCacheImpl.CacheKey key,
boolean setDocsWithField) |
private void |
printNewInsanity(java.io.PrintStream infoStream,
java.lang.Object value) |
void |
purgeByCacheKey(java.lang.Object coreCacheKey)
Remove this reader from the cache, if present.
|
void |
put(LeafReader reader,
FieldCacheImpl.CacheKey key,
Accountable value)
Sets the key to the value for the provided reader;
if the key is already set then this doesn't change it.
|
final FieldCacheImpl wrapper
final java.util.Map<java.lang.Object,java.util.Map<FieldCacheImpl.CacheKey,Accountable>> readerCache
Cache(FieldCacheImpl wrapper)
protected abstract Accountable createValue(LeafReader reader, FieldCacheImpl.CacheKey key, boolean setDocsWithField) throws java.io.IOException
java.io.IOException
public void purgeByCacheKey(java.lang.Object coreCacheKey)
public void put(LeafReader reader, FieldCacheImpl.CacheKey key, Accountable value)
public java.lang.Object get(LeafReader reader, FieldCacheImpl.CacheKey key, boolean setDocsWithField) throws java.io.IOException
java.io.IOException
private void printNewInsanity(java.io.PrintStream infoStream, java.lang.Object value)