public class NexusIndexMultiReader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<IndexingContext> |
contexts |
private java.util.List<org.apache.lucene.search.IndexSearcher> |
searchers |
| Constructor and Description |
|---|
NexusIndexMultiReader(java.util.Collection<IndexingContext> contexts) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.index.IndexReader |
acquire() |
java.util.List<org.apache.lucene.search.IndexSearcher> |
getAcquiredSearchers()
Watch out with this method, as it's use depends on (if you control it at all) was
acquire() method
invoked at all or not. |
void |
release() |
private final java.util.List<IndexingContext> contexts
private java.util.List<org.apache.lucene.search.IndexSearcher> searchers
public NexusIndexMultiReader(java.util.Collection<IndexingContext> contexts)
public org.apache.lucene.index.IndexReader acquire()
throws java.io.IOException
java.io.IOExceptionpublic void release()
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<org.apache.lucene.search.IndexSearcher> getAcquiredSearchers()
acquire() method
invoked at all or not. Returns null if not, otherwise the list of acquired searchers. Not thread safe.