org.hibernate.search.backend.impl.lucene.works
Interface LuceneWorkDelegate
- All Known Implementing Classes:
- DeleteExtWorkDelegate
public interface LuceneWorkDelegate
- Author:
- Sanne Grinovero
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.
Copyright © 2011 Hibernate. All Rights Reserved.