Class SearchQueryProperties
java.lang.Object
ca.uhn.fhir.jpa.search.builder.models.SearchQueryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
ca.uhn.fhir.rest.api.SortSpec
boolean
boolean
boolean
hasSort()
boolean
boolean
setDeduplicateInDatabase
(boolean theDeduplicateInDBFlag) Set of PIDs of results that have already been returned in a search.setDoCountOnlyFlag
(boolean theDoCountOnlyFlag) setMaxResultsRequested
(Integer theMaxResultsRequested) setSortSpec
(ca.uhn.fhir.rest.api.SortSpec theSortSpec)
-
Constructor Details
-
SearchQueryProperties
public SearchQueryProperties()
-
-
Method Details
-
isDoCountOnlyFlag
-
setDoCountOnlyFlag
-
isDeduplicateInDatabase
-
setDeduplicateInDatabase
Set of PIDs of results that have already been returned in a search. Searches use pre-fetch thresholds to avoid returning every result in the db (seemySearchPreFetchThresholds
). These threshold values dictate the usage of this set. Results from searches returning *less* than a prefetch threshold are put into this set for 2 purposes: 1) skipping already seen resources. ie, client requesting next "page" of results should skip previously returned results 2) deduplication of returned results. ie, searches can return duplicate resources (due to sort and filter criteria), so this set will be used to avoid returning duplicate results. NOTE: if a client requests *more* resources than *all* prefetch thresholds, we push the work of "deduplication" to the database. No newly seen resource will be stored in this set (to avoid this set exploding in size and the JVM running out memory). We will, however, still use it to skip previously seen results. -
getMaxResultsRequested
-
setMaxResultsRequested
-
hasMaxResultsRequested
-
getOffset
-
hasOffset
-
setOffset
-
getSortSpec
-
hasSort
-
setSortSpec
-
clone
-