Package org.hibernate.search.reader
Class SharedReaderProvider
java.lang.Object
org.hibernate.search.reader.SharedReaderProvider
- All Implemented Interfaces:
ReaderProvider
Deprecated.
replaced by SharingBufferReaderProvider
Share readers per
SearchFactory, reusing them if they are still valid.
This class contains several bugs including HSEARCH-211. Since it is deprecated we are not going to
fix them right now.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseReader(IndexReader reader) Deprecated.Close a reader previously opened byReaderProvider.openReader(org.hibernate.search.store.DirectoryProvider...).voiddestroy()Deprecated.Called when aSearchFactoryis destroyed.voidinitialize(Properties props, BuildContext context) Deprecated.Initialize the reader provider before its use.openReader(DirectoryProvider... directoryProviders) Deprecated.Open a read-only reader on all the listed directory providers.
-
Constructor Details
-
SharedReaderProvider
public SharedReaderProvider()Deprecated.
-
-
Method Details
-
openReader
Deprecated.Description copied from interface:ReaderProviderOpen a read-only reader on all the listed directory providers. The opened reader has to be closed throughReaderProvider.closeReader(IndexReader). The opening can be virtual.- Specified by:
openReaderin interfaceReaderProvider
-
closeReader
Deprecated.Description copied from interface:ReaderProviderClose a reader previously opened byReaderProvider.openReader(org.hibernate.search.store.DirectoryProvider...). The closing can be virtual.- Specified by:
closeReaderin interfaceReaderProvider
-
initialize
Deprecated.Description copied from interface:ReaderProviderInitialize the reader provider before its use.- Specified by:
initializein interfaceReaderProvider
-
destroy
public void destroy()Deprecated.Description copied from interface:ReaderProviderCalled when aSearchFactoryis destroyed. This method typically releases resources. It is guaranteed to be executed after readers are released by queries (assuming no user error).- Specified by:
destroyin interfaceReaderProvider
-