public class OptimizeLuceneWork extends LuceneWork
Modifier and Type | Field and Description |
---|---|
static OptimizeLuceneWork |
INSTANCE |
Constructor and Description |
---|
OptimizeLuceneWork(Class<?> entity)
Optimizes the index(es) of a specific entity
|
Modifier and Type | Method and Description |
---|---|
<P,R> R |
acceptIndexWorkVisitor(IndexWorkVisitor<P,R> visitor,
P p)
Accepts the given visitor by dispatching the correct visit method for the specific
LuceneWork sub-type. |
String |
toString() |
getDocument, getEntityClass, getFieldToAnalyzerMap, getId, getIdInString, getTenantId
public static final OptimizeLuceneWork INSTANCE
public OptimizeLuceneWork(Class<?> entity)
entity
- the entity typepublic <P,R> R acceptIndexWorkVisitor(IndexWorkVisitor<P,R> visitor, P p)
LuceneWork
LuceneWork
sub-type.acceptIndexWorkVisitor
in class LuceneWork
P
- Context parameter type expected by a specific visitorR
- Return type provided by a specific visitorvisitor
- the visitor to acceptp
- a visitor-specific context parameternull
if this visitor doesn't return a resultCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved