org.xcmis.search.lucene.index
Interface IndexTransaction<D>

Type Parameters:
D - Document class.
All Known Subinterfaces:
LoggedIndexTransaction<D>
All Known Implementing Classes:
LoggedIndexTransactionImpl, LuceneIndexTransaction

public interface IndexTransaction<D>

Created by The eXo Platform SAS.

Version:
$Id: IndexTransaction.java 2 2010-02-04 17:21:49Z andrew00x $
Author:
Sergey Kabashnyuk

Method Summary
 IndexTransaction<D> apply(IndexTransactionModificationReport report)
          Remove modifications f
 Map<String,D> getAddedDocuments()
          Map of documents what should be added to index.
 long getAddedDocumentSizeInBytes()
           
 Set<String> getRemovedDocuments()
          Set of identifiers of documents what should be removed from index.
 boolean hasAddedDocuments()
           
 boolean hasModifacationsDocuments()
           
 

Method Detail

apply

IndexTransaction<D> apply(IndexTransactionModificationReport report)
Remove modifications f

Parameters:
report -

getAddedDocuments

Map<String,D> getAddedDocuments()
Map of documents what should be added to index.

Returns:
map of documents.

getAddedDocumentSizeInBytes

long getAddedDocumentSizeInBytes()
Returns:
size of transaction in bytes

getRemovedDocuments

Set<String> getRemovedDocuments()
Set of identifiers of documents what should be removed from index.

Returns:
set of identifiers.

hasAddedDocuments

boolean hasAddedDocuments()
Returns:
true if where is AddedDocuments

hasModifacationsDocuments

boolean hasModifacationsDocuments()
Returns:
true if where is UpdatedDocuments or RemovedDocuments


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