org.xcmis.search.lucene.index
Class LoggedIndexTransactionImpl

java.lang.Object
  extended by org.xcmis.search.lucene.index.LuceneIndexTransaction
      extended by org.xcmis.search.lucene.index.LoggedIndexTransactionImpl
All Implemented Interfaces:
IndexTransaction<org.apache.lucene.document.Document>, IndexTransactionResource, LoggedIndexTransaction<org.apache.lucene.document.Document>

public class LoggedIndexTransactionImpl
extends LuceneIndexTransaction
implements LoggedIndexTransaction<org.apache.lucene.document.Document>

Version:
$Id: exo-jboss-codetemplates.xml 34027 2009-07-15 23:26:43Z aheritier $
Author:
Sergey Kabashnyuk

Constructor Summary
LoggedIndexTransactionImpl(IndexTransaction<org.apache.lucene.document.Document> indexTransaction, TransactionLog transactionLog)
           
LoggedIndexTransactionImpl(Map<String,org.apache.lucene.document.Document> addedDocuments, Set<String> deletedDocuments, IndexTransactionService indexTransactionService)
           
 
Method Summary
 IndexTransaction<org.apache.lucene.document.Document> apply(IndexTransactionModificationReport report)
          Remove modifications f
 void end()
          Remove information from persistence storage.
 TransactionLog getTransactionLog()
          Return transaction log
 void log()
          Save information about transaction to the persistence storage.
 
Methods inherited from class org.xcmis.search.lucene.index.LuceneIndexTransaction
getAddedDocuments, getAddedDocumentSizeInBytes, getRemovedDocuments, hasAddedDocuments, hasModifacationsDocuments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xcmis.search.lucene.index.IndexTransaction
getAddedDocuments, getAddedDocumentSizeInBytes, getRemovedDocuments, hasAddedDocuments, hasModifacationsDocuments
 

Constructor Detail

LoggedIndexTransactionImpl

public LoggedIndexTransactionImpl(IndexTransaction<org.apache.lucene.document.Document> indexTransaction,
                                  TransactionLog transactionLog)
Parameters:
addedDocuments -
updatedDocuments -
deletedDocuments -

LoggedIndexTransactionImpl

public LoggedIndexTransactionImpl(Map<String,org.apache.lucene.document.Document> addedDocuments,
                                  Set<String> deletedDocuments,
                                  IndexTransactionService indexTransactionService)
Parameters:
addedDocuments -
updatedDocuments -
deletedDocuments -
Method Detail

apply

public IndexTransaction<org.apache.lucene.document.Document> apply(IndexTransactionModificationReport report)
Description copied from class: LuceneIndexTransaction
Remove modifications f

Specified by:
apply in interface IndexTransaction<org.apache.lucene.document.Document>
Overrides:
apply in class LuceneIndexTransaction

end

public void end()
         throws IndexTransactionException
Remove information from persistence storage.

Specified by:
end in interface LoggedIndexTransaction<org.apache.lucene.document.Document>
Throws:
IndexTransactionException

getTransactionLog

public TransactionLog getTransactionLog()
Return transaction log

Specified by:
getTransactionLog in interface IndexTransactionResource
Returns:

log

public void log()
         throws IndexTransactionException
Save information about transaction to the persistence storage.

Specified by:
log in interface LoggedIndexTransaction<org.apache.lucene.document.Document>
Throws:
IndexTransactionException


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.