org.hibernate.search.backend
Class FlushLuceneWork

java.lang.Object
  extended by org.hibernate.search.backend.LuceneWork
      extended by org.hibernate.search.backend.FlushLuceneWork
All Implemented Interfaces:
Serializable

public class FlushLuceneWork
extends LuceneWork
implements Serializable

Used to flush and commit asynchronous and other pending operations on the Indexes. Generally not needed, this is mainly used at the end of mass indexing operations.

Since:
4.1
Author:
Sanne Grinovero (C) 2012 Red Hat Inc.
See Also:
Serialized Form

Field Summary
static FlushLuceneWork INSTANCE
           
 
Constructor Summary
FlushLuceneWork(Class<?> entity)
          Flushes all index operations for a specific entity.
 
Method Summary
<T> T
getWorkDelegate(WorkVisitor<T> visitor)
           
 String toString()
           
 
Methods inherited from class org.hibernate.search.backend.LuceneWork
getDocument, getEntityClass, getFieldToAnalyzerMap, getId, getIdInString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final FlushLuceneWork INSTANCE
Constructor Detail

FlushLuceneWork

public FlushLuceneWork(Class<?> entity)
Flushes all index operations for a specific entity.

Parameters:
entity - the entity type for which to flush the index
Method Detail

getWorkDelegate

public <T> T getWorkDelegate(WorkVisitor<T> visitor)
Specified by:
getWorkDelegate in class LuceneWork

toString

public String toString()
Overrides:
toString in class Object


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