Package org.apache.maven.index.context
Class NexusIndexMultiReader
- java.lang.Object
-
- org.apache.maven.index.context.NexusIndexMultiReader
-
public class NexusIndexMultiReader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IndexingContext>
contexts
private java.util.List<org.apache.lucene.search.IndexSearcher>
searchers
-
Constructor Summary
Constructors Constructor Description NexusIndexMultiReader(java.util.Collection<IndexingContext> contexts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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) wasacquire()
method invoked at all or not.void
release()
-
-
-
Field Detail
-
contexts
private final java.util.List<IndexingContext> contexts
-
searchers
private java.util.List<org.apache.lucene.search.IndexSearcher> searchers
-
-
Constructor Detail
-
NexusIndexMultiReader
public NexusIndexMultiReader(java.util.Collection<IndexingContext> contexts)
-
-
Method Detail
-
acquire
public org.apache.lucene.index.IndexReader acquire() throws java.io.IOException
- Throws:
java.io.IOException
-
release
public void release() throws java.io.IOException
- Throws:
java.io.IOException
-
getAcquiredSearchers
public 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) wasacquire()
method invoked at all or not. Returnsnull
if not, otherwise the list of acquired searchers. Not thread safe.- Returns:
-
-