org.compass.core.lucene.engine.transaction.support.job
Class UpdateTransactionJob

java.lang.Object
  extended by org.compass.core.lucene.engine.transaction.support.job.UpdateTransactionJob
All Implemented Interfaces:
Serializable, TransactionJob

public class UpdateTransactionJob
extends Object
implements TransactionJob

A transaction job that creates updates a Resource.

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
UpdateTransactionJob(InternalResource resource)
           
 
Method Summary
 boolean equals(Object o)
           
 void execute(IndexWriter writer, LuceneSearchEngineFactory sessionFactory)
          Executes the job against Lucene IndexWriter.
 InternalResource getResource()
           
 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.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateTransactionJob

public UpdateTransactionJob(InternalResource resource)
Method Detail

getSubIndex

public String getSubIndex()
Description copied from interface: TransactionJob
Returns the sub index the transaction job will work against.

Specified by:
getSubIndex in interface TransactionJob

getResourceUID

public String getResourceUID()
Description copied from interface: TransactionJob
Retruns the resource UID (if available) that transaction job will work on.

Specified by:
getResourceUID in interface TransactionJob

getResource

public InternalResource getResource()

execute

public void execute(IndexWriter writer,
                    LuceneSearchEngineFactory sessionFactory)
             throws Exception
Description copied from interface: TransactionJob
Executes the job against Lucene IndexWriter.

Specified by:
execute in interface TransactionJob
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright (c) 2004-2009 The Compass Project.