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 final class DeleteExtWorkDelegate
extends Object

Extension of DeleteLuceneWork bound to a single entity. This allows to perform the delete 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

Field Summary
protected  Workspace workspace
           
 
Method Summary
protected static boolean isIdNumeric(DocumentBuilderIndexedEntity<?> documentBuilder)
           
 void performWork(LuceneWork work, org.apache.lucene.index.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
 

Field Detail

workspace

protected final Workspace workspace
Method Detail

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
Parameters:
work - the LuceneWork to apply to the IndexWriter.
writer - the IndexWriter to use.
monitor - will be notified of performed operations

isIdNumeric

protected static boolean isIdNumeric(DocumentBuilderIndexedEntity<?> documentBuilder)


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved