org.hibernate.search.backend.impl.lucene.works
Interface LuceneWorkDelegate
- All Known Implementing Classes:
- DeleteExtWorkDelegate
public interface LuceneWorkDelegate
- Author:
- Sanne Grinovero
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:
java.lang.UnsupportedOperationException - when the work is not compatible with an IndexWriter.
logWorkDone
void logWorkDone(LuceneWork work,
MassIndexerProgressMonitor monitor)
- Used for stats and performance counters, use the monitor
to keep track of activity done on the index.
- Parameters:
work - the work which was done.monitor - the monitor tracking activity.
Copyright © 2006-2010 Hibernate. All Rights Reserved.