Class 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  
    • 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) was acquire() method invoked at all or not.
      void release()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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) was acquire() method invoked at all or not. Returns null if not, otherwise the list of acquired searchers. Not thread safe.
        Returns: