org.compass.core.lucene.engine.transaction.support.job
Interface TransactionJob

All Superinterfaces:
Serializable
All Known Implementing Classes:
CreateTransactionJob, DeleteByQueryTransactionJob, DeleteTransactionJob, FlushCommitTransactionJob, UpdateTransactionJob

public interface TransactionJob
extends Serializable

A transaction job represents a job that needs to be performed.

Author:
kimchy

Method Summary
 void execute(IndexWriter writer, LuceneSearchEngineFactory sessionFactory)
          Executes the job against Lucene IndexWriter.
 String getResourceUID()
          Retruns the resource UID (if available) that transaction job will work on.
 String getSubIndex()
          Returns the sub index the transaction job will work against.
 

Method Detail

getSubIndex

String getSubIndex()
Returns the sub index the transaction job will work against.


getResourceUID

String getResourceUID()
Retruns the resource UID (if available) that transaction job will work on.


execute

void execute(IndexWriter writer,
             LuceneSearchEngineFactory sessionFactory)
             throws Exception
Executes the job against Lucene IndexWriter.

Throws:
Exception


Copyright (c) 2004-2009 The Compass Project.