Package org.hibernate.search.backend
Class LuceneWork
java.lang.Object
org.hibernate.search.backend.LuceneWork
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AddLuceneWork,DeleteLuceneWork,OptimizeLuceneWork,PurgeAllLuceneWork
Represent a Serializable Lucene unit work
WARNING: This class aims to be serializable and passed in an asynchronous way across VMs
any non backward compatible serialization change should be done with great care
and publically announced. Specifically, new versions of Hibernate Search should be
able to handle changes produced by older versions of Hibernate Search if reasonably possible.
That is why each subclass susceptible to be pass along have a magic serialization number.
NOTE: we are relying on Lucene's Document to play nice unfortunately
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneWork(Serializable id, String idInString, Class entity) LuceneWork(Serializable id, String idInString, Class entity, Document document) LuceneWork(Serializable id, String idInString, Class entity, Document document, boolean batch) -
Method Summary
Modifier and TypeMethodDescriptiongetId()abstract <T> TgetWorkDelegate(WorkVisitor<T> visitor) booleanisBatch()
-
Constructor Details
-
LuceneWork
-
LuceneWork
-
LuceneWork
public LuceneWork(Serializable id, String idInString, Class entity, Document document, boolean batch)
-
-
Method Details
-
isBatch
public boolean isBatch() -
getDocument
-
getEntityClass
-
getId
-
getIdInString
-
getWorkDelegate
-