org.eclipse.smila.search.lucene.index.access
Class SynchronizedIndexWriterExecutor<ReturnedType>
java.lang.Object
org.eclipse.smila.search.lucene.index.access.SynchronizedAbstractExecutor<IndexWriter,ReturnedType>
org.eclipse.smila.search.lucene.index.access.SynchronizedIndexWriterExecutor<ReturnedType>
- Type Parameters:
ReturnedType - class of returned type.
public class SynchronizedIndexWriterExecutor<ReturnedType>
- extends SynchronizedAbstractExecutor<IndexWriter,ReturnedType>
The Class SynchronizedIndexWriterExecutor.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynchronizedIndexWriterExecutor
public SynchronizedIndexWriterExecutor(DIndex monitored,
java.lang.String storage,
Analyzer analyzer)
- Instantiates a new synchronized index writer executor.
- Parameters:
monitored - the monitored DIndexstorage - the storageanalyzer - the analyzer
close
protected void close(IndexWriter object)
throws IndexException
- Close.
- Specified by:
close in class SynchronizedAbstractExecutor<IndexWriter,ReturnedType>
- Parameters:
object - the object
- Throws:
IndexException - the index exception- See Also:
SynchronizedAbstractExecutor.close(java.lang.Object)
execute
public ReturnedType execute(ISynchronizedOperation<IndexWriter,ReturnedType> operation)
throws IndexException
- Execute.
- Specified by:
execute in class SynchronizedAbstractExecutor<IndexWriter,ReturnedType>
- Parameters:
operation - the operation
- Returns:
- the returned type
- Throws:
IndexException - the index exception- See Also:
#execute(org.eclipse.smila.search.lucene.index.access.ISynchronizedOperation)