Interface ISearchBuilder

All Known Implementing Classes:
LegacySearchBuilder, SearchBuilder

public interface ISearchBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    createCountQuery(SearchParameterMap theParams, String theSearchUuid, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId)
     
    createQuery(SearchParameterMap theParams, SearchRuntimeDetails theSearchRuntime, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId)
     
    Set<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId>
    loadIncludes(ca.uhn.fhir.context.FhirContext theContext, javax.persistence.EntityManager theEntityManager, Collection<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> theMatches, Set<ca.uhn.fhir.model.api.Include> theRevIncludes, boolean theReverseMode, ca.uhn.fhir.rest.param.DateRangeParam theLastUpdated, String theSearchIdOrDescription, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, Integer theMaxCount)
     
    void
    loadResourcesByPid(Collection<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> thePids, Collection<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> theIncludedPids, List<org.hl7.fhir.instance.model.api.IBaseResource> theResourceListToPopulate, boolean theForHistoryOperation, ca.uhn.fhir.rest.api.server.RequestDetails theDetails)
     
    void
    setFetchSize(int theFetchSize)
    How many results may be fetched at once
    void
    setMaxResultsToFetch(Integer theMaxResultsToFetch)
     
    void
    setPreviouslyAddedResourcePids(List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> thePreviouslyAddedResourcePids)
     
  • Method Details

    • createQuery

      IResultIterator createQuery(SearchParameterMap theParams, SearchRuntimeDetails theSearchRuntime, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nonnull ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId)
    • createCountQuery

      Iterator<Long> createCountQuery(SearchParameterMap theParams, String theSearchUuid, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId)
    • setMaxResultsToFetch

      void setMaxResultsToFetch(Integer theMaxResultsToFetch)
    • loadResourcesByPid

      void loadResourcesByPid(Collection<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> thePids, Collection<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> theIncludedPids, List<org.hl7.fhir.instance.model.api.IBaseResource> theResourceListToPopulate, boolean theForHistoryOperation, ca.uhn.fhir.rest.api.server.RequestDetails theDetails)
    • loadIncludes

      Set<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> loadIncludes(ca.uhn.fhir.context.FhirContext theContext, javax.persistence.EntityManager theEntityManager, Collection<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> theMatches, Set<ca.uhn.fhir.model.api.Include> theRevIncludes, boolean theReverseMode, ca.uhn.fhir.rest.param.DateRangeParam theLastUpdated, String theSearchIdOrDescription, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, Integer theMaxCount)
    • setFetchSize

      void setFetchSize(int theFetchSize)
      How many results may be fetched at once
    • setPreviouslyAddedResourcePids

      void setPreviouslyAddedResourcePids(List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> thePreviouslyAddedResourcePids)