
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, RequestPartitionId theRequestPartitionId)
-
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, @Nullable RequestPartitionId theRequestPartitionId) - Parameters:
theRequestPartitionId
- This parameter should only be provided if a fixed partition should be used for the search. If set tonull
(which is generally the right thing to do), the partition will be determined by the partition selection interceptor.
-
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
-