org.hibernate.search.backend.impl.lucene.works
Class DeleteExtWorkDelegate

java.lang.Object
  extended by org.hibernate.search.backend.impl.lucene.works.DeleteExtWorkDelegate
All Implemented Interfaces:
LuceneWorkDelegate

public class DeleteExtWorkDelegate
extends Object

Stateless extension of DeleteLuceneWork, performing the same LuceneWork in an optimal way in case the index is NOT shared across different entities (which is the default).

Author:
Sanne Grinovero
See Also:
DeleteWorkDelegate

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIndexInteractionType

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

performWork

public void performWork(LuceneWork work,
                        org.apache.lucene.index.IndexWriter writer)
Description copied from interface: LuceneWorkDelegate
Will perform work on an IndexWriter.

Specified by:
performWork in interface LuceneWorkDelegate
Parameters:
work - the LuceneWork to apply to the IndexWriter.
writer - the IndexWriter to use.

performWork

public void performWork(LuceneWork work,
                        org.apache.lucene.index.IndexReader reader)
Description copied from interface: LuceneWorkDelegate
Will perform this work on an IndexReader.

Specified by:
performWork in interface LuceneWorkDelegate
Parameters:
work - the LuceneWork to apply to the IndexReader.
reader - the IndexReader to use.