Class PojoProjectionHitMapper<E>
java.lang.Object
org.hibernate.search.mapper.pojo.search.loading.impl.PojoProjectionHitMapper<E>
- All Implemented Interfaces:
ProjectionHitMapper<E>
-
Constructor Summary
ConstructorsConstructorDescriptionPojoProjectionHitMapper(Map<String, PojoSearchLoadingIndexedTypeContext<? extends E>> targetTypesByEntityName, PojoEntityReferenceFactoryDelegate entityReferenceFactoryDelegate, BridgeSessionContext sessionContext, PojoLoadingPlan<E> loadingPlan) -
Method Summary
Modifier and TypeMethodDescriptionloadBlocking(Deadline deadline) Loads the entities planned for loading in one go, blocking the current thread while doing so.planLoading(DocumentReference reference) Plan the loading of an entity.
-
Constructor Details
-
PojoProjectionHitMapper
public PojoProjectionHitMapper(Map<String, PojoSearchLoadingIndexedTypeContext<? extends E>> targetTypesByEntityName, PojoEntityReferenceFactoryDelegate entityReferenceFactoryDelegate, BridgeSessionContext sessionContext, PojoLoadingPlan<E> loadingPlan)
-
-
Method Details
-
planLoading
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
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.
-