public final class DefaultProjectionHitMapper<R,E> extends Object implements ProjectionHitMapper<R,E>
| Constructor and Description |
|---|
DefaultProjectionHitMapper(Function<DocumentReference,R> documentReferenceTransformer,
EntityLoader<R,E> objectLoader) |
| Modifier and Type | Method and Description |
|---|---|
R |
convertReference(DocumentReference reference)
Convert a document reference to the reference specific to the mapper.
|
LoadingResult<E> |
loadBlocking()
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.
|
public DefaultProjectionHitMapper(Function<DocumentReference,R> documentReferenceTransformer, EntityLoader<R,E> objectLoader)
public R convertReference(DocumentReference reference)
ProjectionHitMapperconvertReference in interface ProjectionHitMapper<R,E>reference - The document reference.public Object planLoading(DocumentReference reference)
ProjectionHitMapperplanLoading in interface ProjectionHitMapper<R,E>reference - The document reference.LoadingResult after load.public LoadingResult<E> loadBlocking()
ProjectionHitMapperloadBlocking in interface ProjectionHitMapper<R,E>Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.