Class HibernateSearchMultiReader

java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.CompositeReader
org.apache.lucene.index.BaseCompositeReader<org.apache.lucene.index.IndexReader>
org.apache.lucene.index.MultiReader
org.hibernate.search.backend.lucene.lowlevel.reader.impl.HibernateSearchMultiReader
All Implemented Interfaces:
Closeable, AutoCloseable

public class HibernateSearchMultiReader extends org.apache.lucene.index.MultiReader
A MultiReader keeping references to DirectoryReaders to eventually close them, and holding some additional metadata related to the targeted readers.

Ported from Search 5: org.hibernate.search.reader.impl.ManagedMultiReader, org.hibernate.search.reader.impl.MultiReaderFactory.

Author:
Emmanuel Bernard, Sanne Grinovero (C) 2011 Red Hat Inc.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader

    org.apache.lucene.index.IndexReader.CacheHelper, org.apache.lucene.index.IndexReader.CacheKey, org.apache.lucene.index.IndexReader.ClosedListener
  • Field Summary

    Fields inherited from class org.apache.lucene.index.BaseCompositeReader

    subReadersSorter
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
     
    open(Set<String> indexNames, Collection<? extends ReadIndexManagerContext> indexManagerContexts, Set<String> routingKeys)
     

    Methods inherited from class org.apache.lucene.index.MultiReader

    getReaderCacheHelper

    Methods inherited from class org.apache.lucene.index.BaseCompositeReader

    docFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, storedFields, termVectors, totalTermFreq

    Methods inherited from class org.apache.lucene.index.CompositeReader

    getContext, toString

    Methods inherited from class org.apache.lucene.index.IndexReader

    close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, notifyReaderClosedListeners, numDeletedDocs, registerParentReader, tryIncRef

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait