org.hibernate.search.reader
Class ReaderProviderHelper
java.lang.Object
org.hibernate.search.reader.ReaderProviderHelper
public abstract class ReaderProviderHelper
- extends Object
- Author:
- Emmanuel Bernard
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderProviderHelper
public ReaderProviderHelper()
getSubReadersFromMultiReader
public static IndexReader[] getSubReadersFromMultiReader(MultiReader parentReader)
buildMultiReader
public static IndexReader buildMultiReader(int length,
IndexReader[] readers)
clean
public static void clean(SearchException e,
IndexReader... readers)
getIndexReaders
public static Set<IndexReader> getIndexReaders(Searchable searchable)
- Find the underlying IndexReaders for the given searchable
- Parameters:
searchable - The searchable to find the IndexReaders for
- Returns:
- A list of all base IndexReaders used within this searchable
getIndexReaders
public static Set<IndexReader> getIndexReaders(IndexReader reader)
- Find the underlying IndexReaders for the given reader
- Parameters:
reader - The reader to find the IndexReaders for
- Returns:
- A list of all base IndexReaders used within this searchable