org.hibernate.search.backend
Class FlushLuceneWork
java.lang.Object
org.hibernate.search.backend.LuceneWork
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
Constructor Summary |
FlushLuceneWork(Class<?> entity)
Flushes all index operations for a specific entity. |
INSTANCE
public static final FlushLuceneWork INSTANCE
FlushLuceneWork
public FlushLuceneWork(Class<?> entity)
- Flushes all index operations for a specific entity.
- Parameters:
entity
- the entity type for which to flush the index
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