Package ca.uhn.fhir.jpa.api.svc
Interface IBatch2DaoSvc
public interface IBatch2DaoSvc
-
Method Summary
Modifier and TypeMethodDescriptiondefault IResourcePidList
fetchResourceIdsPage
(Date theStart, Date theEnd, RequestPartitionId theRequestPartitionId, String theUrl) Fetches a page of resource IDs for all resource types.default IResourcePidList
fetchResourceIdsPage
(Date theStart, Date theEnd, Integer thePageSize, RequestPartitionId theRequestPartitionId, String theUrl) Deprecated.default IResourcePidStream
fetchResourceIdStream
(Date theStart, Date theEnd, RequestPartitionId theTargetPartitionId, String theUrl) boolean
Indicates whether reindexing all resource types is supported.
-
Method Details
-
isAllResourceTypeSupported
boolean isAllResourceTypeSupported()Indicates whether reindexing all resource types is supported. Implementations are expected to provide a static response (either they support this or they don't). -
fetchResourceIdsPage
default IResourcePidList fetchResourceIdsPage(Date theStart, Date theEnd, @Nullable RequestPartitionId theRequestPartitionId, @Nullable String theUrl) Fetches a page of resource IDs for all resource types. The page size is up to the discretion of the implementation.- Parameters:
theStart
- The start of the date range, must be inclusive.theEnd
- The end of the date range, should be exclusive.theRequestPartitionId
- The request partition ID (may benull
on non-partitioned systems)theUrl
- The search URL, ornull
to return IDs for all resources across all resource types. Null will only be supplied ifisAllResourceTypeSupported()
returnstrue
.
-
fetchResourceIdsPage
@Deprecated default IResourcePidList fetchResourceIdsPage(Date theStart, Date theEnd, @Nonnull Integer thePageSize, @Nullable RequestPartitionId theRequestPartitionId, @Nullable String theUrl) Deprecated.Please call (@linkfetchResourceIdsPage(Date, Date, RequestPartitionId, String)
instead. Fetches a page of resource IDs for all resource types. The page size is up to the discretion of the implementation.- Parameters:
theStart
- The start of the date range, must be inclusive.theEnd
- The end of the date range, should be exclusive.thePageSize
- The number of records to query in each pass.theRequestPartitionId
- The request partition ID (may benull
on non-partitioned systems)theUrl
- The search URL, ornull
to return IDs for all resources across all resource types. Null will only be supplied ifisAllResourceTypeSupported()
returnstrue
.
-
fetchResourceIdStream
default IResourcePidStream fetchResourceIdStream(Date theStart, Date theEnd, RequestPartitionId theTargetPartitionId, String theUrl)
-
fetchResourceIdsPage(Date, Date, RequestPartitionId, String)
instead.