
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
FieldsModifier and TypeFieldDescriptionprotected LongComposite of resourceType, paramName, and partition info if configured. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcalculateHashIdentity(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName) static longcalculateHashIdentity(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, List<String> theAdditionalValues) static longcalculateHashIdentity(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName) <T extends BaseResourceIndex>
voidcopyMutableValuesFrom(T theSource) abstract LonggetId()abstract ResourceTableGet the Resource this SP indexesbooleanbooleanbooleanmatches(ca.uhn.fhir.model.api.IQueryParameterType theParam) voidSet SP_NAME, RES_TYPE to null without clearing hashesvoidrestoreParamName(String theParamName) Restore SP_NAME without clearing hashesvoidsetHashIdentity(Long theHashIdentity) setMissing(boolean theMissing) voidsetParamName(String theName) setPartitionSettings(PartitionSettings thePartitionSettings) abstract BaseResourceIndexedSearchParamsetResource(ResourceTable theResource) voidsetResourceType(String theResourceType) setStorageSettings(StorageSettings theStorageSettings) voidsetUpdated(Date theUpdated) abstract ca.uhn.fhir.model.api.IQueryParameterTypeMethods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
calculateHashes, clearHashes, equals, hashCode, setId, setPartitionId, setPlaceholderHashesIfMissing, setResourceIdMethods 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:
getIdin classBaseResourceIndex
-
getParamName
-
setParamName
-
restoreParamName
Restore SP_NAME without clearing hashes -
optimizeIndexStorage
Set SP_NAME, RES_TYPE to null without clearing hashes -
isIndexStorageOptimized
-
getResource
Get the Resource this SP indexes -
setResource
-
copyMutableValuesFrom
- Specified by:
copyMutableValuesFromin 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)
-