SMILA (incubation) API documentation

org.eclipse.smila.search.lucene.index.access
Class SynchronizedIndexWriterExecutor<ReturnedType>

java.lang.Object
  extended by org.eclipse.smila.search.lucene.index.access.SynchronizedAbstractExecutor<IndexWriter,ReturnedType>
      extended by 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.


Constructor Summary
SynchronizedIndexWriterExecutor(DIndex monitored, java.lang.String storage, Analyzer analyzer)
          Instantiates a new synchronized index writer executor.
 
Method Summary
protected  void close(IndexWriter object)
          Close.
 ReturnedType execute(ISynchronizedOperation<IndexWriter,ReturnedType> operation)
          Execute.
 
Methods inherited from class org.eclipse.smila.search.lucene.index.access.SynchronizedAbstractExecutor
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedIndexWriterExecutor

public SynchronizedIndexWriterExecutor(DIndex monitored,
                                       java.lang.String storage,
                                       Analyzer analyzer)
Instantiates a new synchronized index writer executor.

Parameters:
monitored - the monitored DIndex
storage - the storage
analyzer - the analyzer
Method Detail

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)

SMILA (incubation) API documentation