org.hibernate.search.backend
Class OptimizeLuceneWork

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

public class OptimizeLuceneWork
extends LuceneWork
implements Serializable

A unit of work triggering an optimize operation. This work does not propagate to a cluster: it should be filtered before being sent to the network.

Author:
Andrew Hahn, Emmanuel Bernard
See Also:
Serialized Form

Field Summary
static OptimizeLuceneWork INSTANCE
           
 
Constructor Summary
OptimizeLuceneWork(Class<?> entity)
          Optimizes the index(es) of 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 OptimizeLuceneWork INSTANCE
Constructor Detail

OptimizeLuceneWork

public OptimizeLuceneWork(Class<?> entity)
Optimizes the index(es) of a specific entity

Parameters:
entity -
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