Class PojoProjectionHitMapper<E>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.search.loading.impl.PojoProjectionHitMapper<E>
-
- All Implemented Interfaces:
ProjectionHitMapper<E>
public final class PojoProjectionHitMapper<E> extends Object implements ProjectionHitMapper<E>
-
-
Constructor Summary
Constructors Constructor Description PojoProjectionHitMapper(Map<String,PojoSearchLoadingIndexedTypeContext<? extends E>> targetTypesByEntityName, PojoEntityReferenceFactoryDelegate entityReferenceFactoryDelegate, BridgeSessionContext sessionContext, PojoLoadingPlan<E> loadingPlan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadingResult<E>loadBlocking(Deadline deadline)Loads the entities planned for loading in one go, blocking the current thread while doing so.ObjectplanLoading(DocumentReference reference)Plan the loading of an entity.
-
-
-
Constructor Detail
-
PojoProjectionHitMapper
public PojoProjectionHitMapper(Map<String,PojoSearchLoadingIndexedTypeContext<? extends E>> targetTypesByEntityName, PojoEntityReferenceFactoryDelegate entityReferenceFactoryDelegate, BridgeSessionContext sessionContext, PojoLoadingPlan<E> loadingPlan)
-
-
Method Detail
-
planLoading
public Object planLoading(DocumentReference reference)
Description copied from interface:ProjectionHitMapperPlan the loading of an entity.- Specified by:
planLoadingin interfaceProjectionHitMapper<E>- Parameters:
reference- The document reference.- Returns:
- The key to use to retrieve the loaded entity from
LoadingResultafter load.
-
loadBlocking
public LoadingResult<E> loadBlocking(Deadline deadline)
Description copied from interface:ProjectionHitMapperLoads the entities planned for loading in one go, blocking the current thread while doing so.- Specified by:
loadBlockingin interfaceProjectionHitMapper<E>- Parameters:
deadline- The deadline for loading the entities, or null if there is no deadline.- Returns:
- The loaded entities.
-
-