Package ca.uhn.fhir.jpa.model.entity
Class BaseResourceIndexedSearchParam
java.lang.Object
ca.uhn.fhir.jpa.model.entity.BasePartitionable
ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParam
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BaseResourceIndexedSearchParamQuantity
,ResourceIndexedSearchParamCoords
,ResourceIndexedSearchParamDate
,ResourceIndexedSearchParamNumber
,ResourceIndexedSearchParamString
,ResourceIndexedSearchParamToken
,ResourceIndexedSearchParamUri
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Long
Composite of resourceType, paramName, and partition info if configured. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
calculateHashIdentity
(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName) static long
calculateHashIdentity
(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, List<String> theAdditionalValues) static long
calculateHashIdentity
(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName) <T extends BaseResourceIndex>
voidcopyMutableValuesFrom
(T theSource) abstract Long
getId()
abstract ResourceTable
Get the Resource this SP indexesboolean
boolean
boolean
matches
(ca.uhn.fhir.model.api.IQueryParameterType theParam) void
Set SP_NAME, RES_TYPE, SP_UPDATED to null without clearing hashesvoid
restoreParamName
(String theParamName) Restore SP_NAME without clearing hashesvoid
setHashIdentity
(Long theHashIdentity) setMissing
(boolean theMissing) void
setParamName
(String theName) setPartitionSettings
(PartitionSettings thePartitionSettings) abstract BaseResourceIndexedSearchParam
setResource
(ResourceTable theResource) void
setResourceType
(String theResourceType) setStorageSettings
(StorageSettings theStorageSettings) void
setUpdated
(Date theUpdated) abstract ca.uhn.fhir.model.api.IQueryParameterType
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
calculateHashes, clearHashes, equals, hashCode, setId, setPartitionId, setPlaceholderHashesIfMissing
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId, toString
-
Field Details
-
myHashIdentity
Composite of resourceType, paramName, and partition info if configured. Combined with the various date fields for a query. Nullable to allow optimized storage.
-
-
Constructor Details
-
BaseResourceIndexedSearchParam
public BaseResourceIndexedSearchParam()
-
-
Method Details
-
getId
- Specified by:
getId
in classBaseResourceIndex
-
getParamName
-
setParamName
-
restoreParamName
Restore SP_NAME without clearing hashes -
optimizeIndexStorage
Set SP_NAME, RES_TYPE, SP_UPDATED to null without clearing hashes -
isIndexStorageOptimized
-
getResource
Get the Resource this SP indexes -
setResource
-
copyMutableValuesFrom
- Specified by:
copyMutableValuesFrom
in classBaseResourceIndex
-
getResourcePid
-
getResourceType
-
setResourceType
-
setHashIdentity
-
getHashIdentity
-
getUpdated
-
setUpdated
-
isMissing
-
setMissing
-
toQueryParameterType
-
matches
-
getPartitionSettings
-
setPartitionSettings
-
getStorageSettings
-
setStorageSettings
-
calculateHashIdentity
public static long calculateHashIdentity(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName) -
calculateHashIdentity
public static long calculateHashIdentity(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName) -
calculateHashIdentity
public static long calculateHashIdentity(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, List<String> theAdditionalValues)
-