Interface ProjectionHitMapper<R,​E>

  • Type Parameters:
    R - The type of entity references.
    E - The type of entities.
    All Known Implementing Classes:
    DefaultProjectionHitMapper

    public interface ProjectionHitMapper<R,​E>
    Contract binding result hits and the mapper.
    • Method Detail

      • planLoading

        Object planLoading​(DocumentReference reference)
        Plan the loading of an entity.
        Parameters:
        reference - The document reference.
        Returns:
        The key to use to retrieve the loaded entity from LoadingResult after load.
      • loadBlocking

        LoadingResult<R,​E> loadBlocking​(Deadline deadline)
        Loads the entities planned for loading in one go, blocking the current thread while doing so.
        Parameters:
        deadline - The deadline for loading the entities, or null if there is no deadline.
        Returns:
        The loaded entities.