
Package ca.uhn.fhir.jpa.api.svc
Interface ISearchCoordinatorSvc<T extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId>
public interface ISearchCoordinatorSvc<T extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getResources
(String theUuid, int theFrom, int theTo, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, RequestPartitionId theRequestPartitionId) getSearchTotal
(String theUuid, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, RequestPartitionId theRequestPartitionId) Fetch the total number of search results for the given currently executing search, if one is currently executing and the total is known.ca.uhn.fhir.rest.api.server.IBundleProvider
registerSearch
(IFhirResourceDao<?> theCallingDao, SearchParameterMap theParams, String theResourceType, ca.uhn.fhir.rest.api.CacheControlDirective theCacheControlDirective, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-
Method Details
-
cancelAllActiveSearches
void cancelAllActiveSearches() -
getResources
List<T> getResources(String theUuid, int theFrom, int theTo, @Nullable ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, RequestPartitionId theRequestPartitionId) -
registerSearch
ca.uhn.fhir.rest.api.server.IBundleProvider registerSearch(IFhirResourceDao<?> theCallingDao, SearchParameterMap theParams, String theResourceType, ca.uhn.fhir.rest.api.CacheControlDirective theCacheControlDirective, @Nullable ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Parameters:
theRequestDetails
- The RequestDetails associated with the request. If you want to supply a fixedRequestPartitionId
you can use aSystemRequestDetails
and supply it there.
-
getSearchTotal
Optional<Integer> getSearchTotal(String theUuid, @Nullable ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, RequestPartitionId theRequestPartitionId) Fetch the total number of search results for the given currently executing search, if one is currently executing and the total is known. Will return empty otherwise
-