org.hibernate.search.backend.impl.lucene.works
Interface LuceneWorkDelegate

All Known Implementing Classes:
DeleteExtWorkDelegate

public interface LuceneWorkDelegate

Author:
Sanne Grinovero

Method Summary
 IndexInteractionType getIndexInteractionType()
           
 void performWork(LuceneWork work, org.apache.lucene.index.IndexReader reader)
          Will perform this work on an IndexReader.
 void performWork(LuceneWork work, org.apache.lucene.index.IndexWriter writer)
          Will perform work on an IndexWriter.
 

Method Detail

getIndexInteractionType

IndexInteractionType getIndexInteractionType()
Returns:
the IndexInteractionType needed to accomplish this work (reader or writer) or have a chance to express any preference for performance optimizations.

performWork

void performWork(LuceneWork work,
                 org.apache.lucene.index.IndexWriter writer)
Will perform work on an IndexWriter.

Parameters:
work - the LuceneWork to apply to the IndexWriter.
writer - the IndexWriter to use.
Throws:
UnsupportedOperationException - when the work is not compatible with an IndexWriter.

performWork

void performWork(LuceneWork work,
                 org.apache.lucene.index.IndexReader reader)
Will perform this work on an IndexReader.

Parameters:
work - the LuceneWork to apply to the IndexReader.
reader - the IndexReader to use.
Throws:
UnsupportedOperationException - when the work is not compatible with an IndexReader.