|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReaderProvider
Responsible for providing and managing the lifecycle of a read only reader. The implementation must have a no-arg constructor.
Note that the reader must be closed once opened.
Method Summary | |
---|---|
void |
closeReader(org.apache.lucene.index.IndexReader reader)
Close a reader previously opened by openReader(org.hibernate.search.store.DirectoryProvider...) . |
void |
destroy()
Called when a SearchFactory is destroyed. |
void |
initialize(Properties props,
SearchFactoryImplementor searchFactoryImplementor)
Inialize the reader provider before its use. |
org.apache.lucene.index.IndexReader |
openReader(DirectoryProvider... directoryProviders)
Open a read-only reader on all the listed directory providers. |
Method Detail |
---|
org.apache.lucene.index.IndexReader openReader(DirectoryProvider... directoryProviders)
closeReader(IndexReader)
.
The opening can be virtual.
void closeReader(org.apache.lucene.index.IndexReader reader)
openReader(org.hibernate.search.store.DirectoryProvider...)
.
The closing can be virtual.
void initialize(Properties props, SearchFactoryImplementor searchFactoryImplementor)
void destroy()
SearchFactory
is destroyed. This method typically releases resources.
It is guaranteed to be executed after readers are released by queries (assuming no user error).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |