public class FlushLuceneWork extends LuceneWork
| Modifier and Type | Field and Description |
|---|---|
static FlushLuceneWork |
INSTANCE |
| Constructor and Description |
|---|
FlushLuceneWork(String tenantId,
IndexedTypeIdentifier typeIdentifier)
Flushes all index operations for 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, getEntityType, getFieldToAnalyzerMap, getId, getIdInString, getTenantIdpublic static final FlushLuceneWork INSTANCE
public FlushLuceneWork(String tenantId, IndexedTypeIdentifier typeIdentifier)
tenantId - the tenant identifier. It might be nulltypeIdentifier - the entity type for which to flush the indexpublic <P,R> R acceptIndexWorkVisitor(IndexWorkVisitor<P,R> visitor, P p)
LuceneWorkLuceneWork sub-type.acceptIndexWorkVisitor in class LuceneWorkP - 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-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.