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()
This method is thread-safe (i.e.
|
beginReading, close, closeWhenPossible, endReading, getReadingCount
public ReaderMonitor(LuceneIndex index, org.apache.lucene.store.Directory directory)
index
- directory
- Initializes IndexReaderprotected void handleClose() throws IOException
AbstractReaderMonitor
handleClose
in class AbstractReaderMonitor
IOException
protected org.apache.lucene.search.IndexSearcher getIndexSearcher() throws IOException
IOException
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.