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

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

public class TransactionJobs
extends Object
implements Serializable

A holds for a list of jobs (usually, represent a transaction which holds several dirty operations).

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
TransactionJobs()
           
 
Method Summary
 void add(TransactionJob job)
          Adds a transactional job, representing a single create/update/delete operation.
 Map<String,TransactionJobs> buildJobsPerSubIndex()
          Takes all the jobs within this transaction and breaks it into one or more TransactionJobs per sub index.
 boolean equals(Object o)
           
 List<TransactionJob> getJobs()
          Returns all the jobs.
 Set<String> getSubIndexes()
          Returns all the sub indexes this transactional jobs were performed against.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionJobs

public TransactionJobs()
Method Detail

add

public void add(TransactionJob job)
Adds a transactional job, representing a single create/update/delete operation.


getJobs

public List<TransactionJob> getJobs()
Returns all the jobs.


getSubIndexes

public Set<String> getSubIndexes()
Returns all the sub indexes this transactional jobs were performed against.


buildJobsPerSubIndex

public Map<String,TransactionJobs> buildJobsPerSubIndex()
Takes all the jobs within this transaction and breaks it into one or more TransactionJobs per sub index.


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.