Package org.infinispan.query.impl
Class DefaultSearchWorkCreator
- java.lang.Object
-
- org.infinispan.query.impl.DefaultSearchWorkCreator
-
- All Implemented Interfaces:
SearchWorkCreator
public class DefaultSearchWorkCreator extends Object implements SearchWorkCreator
- Author:
- Marko Luksa
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchWorkCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.search.backend.spi.Work
createEntityWork(Serializable id, org.hibernate.search.spi.IndexedTypeIdentifier entityType, org.hibernate.search.backend.spi.WorkType workType)
Creates a Work instance for a given entity.Collection<org.hibernate.search.backend.spi.Work>
createPerEntityTypeWorks(org.hibernate.search.spi.IndexedTypeIdentifier entityType, org.hibernate.search.backend.spi.WorkType workType)
Creates a collection of Work instances that Hibernate-Search should perform for all the entities of the given entity type.Collection<org.hibernate.search.backend.spi.Work>
createPerEntityWorks(Object entity, Serializable id, org.hibernate.search.backend.spi.WorkType workType)
Creates a collection of Work instances that Hibernate-Search should perform for the given entity
-
-
-
Method Detail
-
createPerEntityTypeWorks
public Collection<org.hibernate.search.backend.spi.Work> createPerEntityTypeWorks(org.hibernate.search.spi.IndexedTypeIdentifier entityType, org.hibernate.search.backend.spi.WorkType workType)
Description copied from interface:SearchWorkCreator
Creates a collection of Work instances that Hibernate-Search should perform for all the entities of the given entity type.- Specified by:
createPerEntityTypeWorks
in interfaceSearchWorkCreator
- Parameters:
entityType
- the entity type that these Works should be created forworkType
- the type of work to be done- Returns:
- collection of Work instances
-
createPerEntityWorks
public Collection<org.hibernate.search.backend.spi.Work> createPerEntityWorks(Object entity, Serializable id, org.hibernate.search.backend.spi.WorkType workType)
Description copied from interface:SearchWorkCreator
Creates a collection of Work instances that Hibernate-Search should perform for the given entity- Specified by:
createPerEntityWorks
in interfaceSearchWorkCreator
- Parameters:
entity
- the entity that these Works should be created forid
- the id of the documentworkType
- the type of work to be done- Returns:
- collection of Work instances
-
createEntityWork
public org.hibernate.search.backend.spi.Work createEntityWork(Serializable id, org.hibernate.search.spi.IndexedTypeIdentifier entityType, org.hibernate.search.backend.spi.WorkType workType)
Description copied from interface:SearchWorkCreator
Creates a Work instance for a given entity.- Specified by:
createEntityWork
in interfaceSearchWorkCreator
- Parameters:
id
- the id of the entityentityType
- the entity type that the Work should be created forworkType
- the type of the Work to be done- Returns:
- Work instance to be performed by the Hibernate Search engine
-
-