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

java.lang.Object
  extended by org.hibernate.search.backend.impl.lucene.works.UpdateWorkDelegate
      extended by 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.

Method Summary
 void performWork(LuceneWork work, IndexWriter writer, IndexingMonitor monitor)
          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

performWork

public void performWork(LuceneWork work,
                        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-2013 Red Hat, Inc. All Rights Reserved