Class DefaultProjectionHitMapper<R,E>
- java.lang.Object
-
- org.hibernate.search.engine.search.loading.spi.DefaultProjectionHitMapper<R,E>
-
- All Implemented Interfaces:
ProjectionHitMapper<R,E>
public final class DefaultProjectionHitMapper<R,E> extends Object implements ProjectionHitMapper<R,E>
-
-
Constructor Summary
Constructors Constructor Description DefaultProjectionHitMapper(DocumentReferenceConverter<R> documentReferenceConverter, EntityLoader<R,? extends E> objectLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadingResult<R,E>
loadBlocking(Deadline deadline)
Loads the entities planned for loading in one go, blocking the current thread while doing so.Object
planLoading(DocumentReference reference)
Plan the loading of an entity.
-
-
-
Constructor Detail
-
DefaultProjectionHitMapper
public DefaultProjectionHitMapper(DocumentReferenceConverter<R> documentReferenceConverter, EntityLoader<R,? extends E> objectLoader)
-
-
Method Detail
-
planLoading
public Object planLoading(DocumentReference reference)
Description copied from interface:ProjectionHitMapper
Plan the loading of an entity.- Specified by:
planLoading
in interfaceProjectionHitMapper<R,E>
- Parameters:
reference
- The document reference.- Returns:
- The key to use to retrieve the loaded entity from
LoadingResult
after load.
-
loadBlocking
public LoadingResult<R,E> loadBlocking(Deadline deadline)
Description copied from interface:ProjectionHitMapper
Loads the entities planned for loading in one go, blocking the current thread while doing so.- Specified by:
loadBlocking
in interfaceProjectionHitMapper<R,E>
- Parameters:
deadline
- The deadline for loading the entities, or null if there is no deadline.- Returns:
- The loaded entities.
-
-