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,
Class<?> entity) |
LuceneWork(String tenantId,
Serializable id,
String idInString,
Class<?> entity,
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() |
Map<String,String> |
getFieldToAnalyzerMap() |
Serializable |
getId() |
String |
getIdInString() |
String |
getTenantId() |
public LuceneWork(String tenantId, Serializable id, String idInString, Class<?> entity)
public LuceneWork(String tenantId, Serializable id, String idInString, Class<?> entity, Document document)
public Document getDocument()
public Class<?> getEntityClass()
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-2017 Red Hat, Inc. All Rights Reserved