Package org.apache.maven.index.context
Class NexusIndexMultiReader
- java.lang.Object
-
- org.apache.maven.index.context.NexusIndexMultiReader
-
public class NexusIndexMultiReader extends java.lang.Object
-
-
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.IndexReaderacquire()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.voidrelease()
-
-
-
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. Returnsnullif not, otherwise the list of acquired searchers. Not thread safe.- Returns:
-
-