Package ca.uhn.fhir.jpa.dao.search
Class HSearchSortHelperImpl
java.lang.Object
ca.uhn.fhir.jpa.dao.search.HSearchSortHelperImpl
- All Implemented Interfaces:
IHSearchSortHelper
Used to build HSearch sort clauses.
-
Constructor Summary
ConstructorDescriptionHSearchSortHelperImpl
(ca.uhn.fhir.rest.server.util.ISearchParamRegistry theSearchParamRegistry) -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.search.engine.search.sort.dsl.SortFinalStep
getSortClauses
(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory theSortFactory, ca.uhn.fhir.rest.api.SortSpec theSortParams, String theResourceType) Builds and returns sort clauses for received sort parametersboolean
supportsAllSortTerms
(String theResourceType, SearchParameterMap theParams) Given a resource type and aSearchParameterMap
, return true only if all sort terms are supported.
-
Constructor Details
-
HSearchSortHelperImpl
public HSearchSortHelperImpl(ca.uhn.fhir.rest.server.util.ISearchParamRegistry theSearchParamRegistry)
-
-
Method Details
-
getSortClauses
public org.hibernate.search.engine.search.sort.dsl.SortFinalStep getSortClauses(org.hibernate.search.engine.search.sort.dsl.SearchSortFactory theSortFactory, ca.uhn.fhir.rest.api.SortSpec theSortParams, String theResourceType) Builds and returns sort clauses for received sort parameters- Specified by:
getSortClauses
in interfaceIHSearchSortHelper
-
supportsAllSortTerms
Description copied from interface:IHSearchSortHelper
Given a resource type and aSearchParameterMap
, return true only if all sort terms are supported.- Specified by:
supportsAllSortTerms
in interfaceIHSearchSortHelper
- Parameters:
theResourceType
- The resource type for the query.theParams
- TheSearchParameterMap
being searched with.- Returns:
- true if all sort terms are supported, false otherwise.
-