public class ReaderMonitor extends AbstractReaderMonitor
Constructor and Description |
---|
ReaderMonitor(LuceneIndex index,
org.apache.lucene.store.Directory directory)
If exception occur when create indexReader it will be thrown on
getIndexReader or get IndexSearcher
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.search.IndexSearcher |
getIndexSearcher() |
protected void |
handleClose() |
beginReading, close, closeWhenPossible, endReading, getReadingCount
public ReaderMonitor(LuceneIndex index, org.apache.lucene.store.Directory directory)
index
- directory
- Initializes IndexReaderprotected void handleClose() throws IOException
handleClose
in class AbstractReaderMonitor
IOException
protected org.apache.lucene.search.IndexSearcher getIndexSearcher() throws IOException
IOException
Copyright © 2001-2016 Aduna. All Rights Reserved.