public abstract class LuceneWork extends Object
Note:
Instances of this class are passed between Virtual Machines when a master/slave
configuration of Search is used. It is the responsibility of the LuceneWorkSerializer
respectively
SerializationProvider
to serialize and de-serialize LuceneWork
instances.
Constructor and Description |
---|
LuceneWork(String tenantId,
Serializable id,
String idInString,
IndexedTypeIdentifier typeIdentifier) |
LuceneWork(String tenantId,
Serializable id,
String idInString,
IndexedTypeIdentifier typeIdentifier,
Document document) |
Modifier and Type | Method and Description |
---|---|
abstract <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. |
Document |
getDocument() |
Class<?> |
getEntityClass()
Deprecated.
use
getEntityType() : this method will be removed! |
IndexedTypeIdentifier |
getEntityType() |
Map<String,String> |
getFieldToAnalyzerMap() |
Serializable |
getId() |
String |
getIdInString() |
String |
getTenantId() |
public LuceneWork(String tenantId, Serializable id, String idInString, IndexedTypeIdentifier typeIdentifier)
public LuceneWork(String tenantId, Serializable id, String idInString, IndexedTypeIdentifier typeIdentifier, Document document)
public Document getDocument()
@Deprecated public Class<?> getEntityClass()
getEntityType()
: this method will be removed!public IndexedTypeIdentifier getEntityType()
public Serializable getId()
public String getIdInString()
public String getTenantId()
public abstract <P,R> R acceptIndexWorkVisitor(IndexWorkVisitor<P,R> visitor, P p)
LuceneWork
sub-type.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-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.