public class SimpleDocSetCache extends AbstractIndexComponent implements DocSetCache, org.apache.lucene.index.AtomicReader.CoreClosedListener
componentSettings, index, indexSettings, logger
Constructor and Description |
---|
SimpleDocSetCache(Index index,
Settings indexSettings) |
Modifier and Type | Method and Description |
---|---|
void |
clear(org.apache.lucene.index.IndexReader reader) |
void |
clear(String reason) |
ContextDocIdSet |
obtain(org.apache.lucene.index.AtomicReaderContext context) |
void |
onClose(Object coreCacheKey) |
void |
release(ContextDocIdSet docSet) |
index, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
index
@Inject public SimpleDocSetCache(Index index, @IndexSettings Settings indexSettings)
public void onClose(Object coreCacheKey)
onClose
in interface org.apache.lucene.index.AtomicReader.CoreClosedListener
public void clear(String reason)
clear
in interface DocSetCache
public void clear(org.apache.lucene.index.IndexReader reader)
clear
in interface DocSetCache
public ContextDocIdSet obtain(org.apache.lucene.index.AtomicReaderContext context)
obtain
in interface DocSetCache
public void release(ContextDocIdSet docSet)
release
in interface DocSetCache
Copyright © 2009–2015. All rights reserved.