Package org.h2.fulltext
Class FullTextLucene.IndexAccess
- java.lang.Object
-
- org.h2.fulltext.FullTextLucene.IndexAccess
-
- Enclosing class:
- FullTextLucene
private static final class FullTextLucene.IndexAccess extends java.lang.ObjectA wrapper for the Lucene writer and searcher.
-
-
Constructor Summary
Constructors Constructor Description IndexAccess(org.apache.lucene.index.IndexWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the index.voidcommit()Commit the changes.(package private) org.apache.lucene.search.IndexSearchergetSearcher()Start using the searcher.private voidinitializeSearcher()(package private) voidreturnSearcher(org.apache.lucene.search.IndexSearcher searcher)Stop using the searcher.
-
-
-
Method Detail
-
getSearcher
org.apache.lucene.search.IndexSearcher getSearcher() throws java.io.IOExceptionStart using the searcher.- Returns:
- the searcher
- Throws:
java.io.IOException- on failure
-
initializeSearcher
private void initializeSearcher() throws java.io.IOException- Throws:
java.io.IOException
-
returnSearcher
void returnSearcher(org.apache.lucene.search.IndexSearcher searcher) throws java.io.IOExceptionStop using the searcher.- Parameters:
searcher- the searcher- Throws:
java.io.IOException- on failure
-
commit
public void commit() throws java.io.IOExceptionCommit the changes.- Throws:
java.io.IOException- on failure
-
close
public void close() throws java.io.IOExceptionClose the index.- Throws:
java.io.IOException- on failure
-
-