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(TimeoutManager timeoutManager)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
-
DefaultProjectionHitMapper
public DefaultProjectionHitMapper(DocumentReferenceConverter<R> documentReferenceConverter, EntityLoader<R,? extends E> objectLoader)
-
-
Method Detail
-
planLoading
public Object planLoading(DocumentReference reference)
Description copied from interface:ProjectionHitMapperPlan the loading of an entity.- Specified by:
planLoadingin interfaceProjectionHitMapper<R,E>- Parameters:
reference- The document reference.- Returns:
- The key to use to retrieve the loaded entity from
LoadingResultafter load.
-
loadBlocking
public LoadingResult<R,E> loadBlocking(TimeoutManager timeoutManager)
Description copied from interface:ProjectionHitMapperLoads the entities planned for loading in one go, blocking the current thread while doing so.- Specified by:
loadBlockingin interfaceProjectionHitMapper<R,E>- Parameters:
timeoutManager- The timeout manager to apply to the loading in milliseconds.- Returns:
- The loaded entities.
-
-