org.hibernate.search.backend.impl.lucene.works
Class UpdateExtWorkDelegate
java.lang.Object
org.hibernate.search.backend.impl.lucene.works.UpdateWorkDelegate
org.hibernate.search.backend.impl.lucene.works.UpdateExtWorkDelegate
- All Implemented Interfaces:
- LuceneWorkDelegate
public final class UpdateExtWorkDelegate
- extends UpdateWorkDelegate
This applies the index update operation using the Lucene operation
IndexWriter.updateDocument(Term, org.apache.lucene.document.Document, org.apache.lucene.analysis.Analyzer)
This is the most efficient way to update the index, but we can apply it only if the Document is uniquely identified
by a single term (so no index sharing across entities or Numeric ids).
- Author:
- Sanne Grinovero (C) 2012 Red Hat Inc.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
performWork
public void performWork(LuceneWork work,
org.apache.lucene.index.IndexWriter writer,
IndexingMonitor monitor)
- Description copied from interface:
LuceneWorkDelegate
- Will perform work on an IndexWriter.
- Specified by:
performWork
in interface LuceneWorkDelegate
- Overrides:
performWork
in class UpdateWorkDelegate
- Parameters:
work
- the LuceneWork to apply to the IndexWriter.writer
- the IndexWriter to use.monitor
- will be notified of performed operations
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved