
Package ca.uhn.fhir.jpa.model.entity
Class ResourceIndexedSearchParamToken
java.lang.Object
ca.uhn.fhir.jpa.model.entity.BasePartitionable
ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParam
ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamToken
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParam
myHashIdentity -
Constructor Summary
ConstructorsConstructorDescriptionConstructorResourceIndexedSearchParamToken(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, boolean theMissing) ConstructorResourceIndexedSearchParamToken(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, String theSystem, String theValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic longcalculateHashSystem(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem) static longcalculateHashSystem(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem) static longcalculateHashSystemAndValue(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem, String theValue) static longcalculateHashSystemAndValue(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem, String theValue) static longcalculateHashValue(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theValue) static longcalculateHashValue(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName, String theValue) void<T extends BaseResourceIndex>
voidcopyMutableValuesFrom(T theSource) booleanSubclasses must implementgetId()Get the Resource this SP indexesgetValue()inthashCode()Subclasses must implementbooleanmatches(ca.uhn.fhir.model.api.IQueryParameterType theParam) voidsetResource(ResourceTable theResource) voidsetResourceId(Long theResourceId) voidca.uhn.fhir.model.api.IQueryParameterTypetoString()voidWe truncate the fields at the last moment because the tables have limited size.Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParam
calculateHashIdentity, calculateHashIdentity, calculateHashIdentity, getHashIdentity, getParamName, getPartitionSettings, getResourcePid, getResourceType, getStorageSettings, getUpdated, isIndexStorageOptimized, isMissing, optimizeIndexStorage, restoreParamName, setHashIdentity, setMissing, setParamName, setPartitionSettings, setResourceType, setStorageSettings, setUpdatedMethods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
setPartitionId, setPlaceholderHashesIfMissingMethods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId
-
Field Details
-
MAX_LENGTH
- See Also:
-
HFJ_SPIDX_TOKEN
- See Also:
-
mySystem
-
-
Constructor Details
-
ResourceIndexedSearchParamToken
public ResourceIndexedSearchParamToken()Constructor -
ResourceIndexedSearchParamToken
public ResourceIndexedSearchParamToken(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, String theSystem, String theValue) Constructor -
ResourceIndexedSearchParamToken
public ResourceIndexedSearchParamToken(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, boolean theMissing) Constructor
-
-
Method Details
-
copyMutableValuesFrom
- Overrides:
copyMutableValuesFromin classBaseResourceIndexedSearchParam
-
setResourceId
- Specified by:
setResourceIdin classBaseResourceIndex
-
clearHashes
- Specified by:
clearHashesin classBaseResourceIndex
-
calculateHashes
- Specified by:
calculateHashesin classBaseResourceIndex
-
equals
Description copied from class:BaseResourceIndexSubclasses must implement- Specified by:
equalsin classBaseResourceIndex
-
getHashSystem
-
getHashSystemAndValue
-
getHashValue
-
getId
- Specified by:
getIdin classBaseResourceIndexedSearchParam
-
setId
- Specified by:
setIdin classBaseResourceIndex
-
getSystem
-
setSystem
-
getValue
-
setValue
-
hashCode
Description copied from class:BaseResourceIndexSubclasses must implement- Specified by:
hashCodein classBaseResourceIndex
-
toQueryParameterType
- Specified by:
toQueryParameterTypein classBaseResourceIndexedSearchParam
-
toString
- Overrides:
toStringin classBasePartitionable
-
matches
- Overrides:
matchesin classBaseResourceIndexedSearchParam
-
calculateHashSystem
public static long calculateHashSystem(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem) -
calculateHashSystem
public static long calculateHashSystem(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem) -
calculateHashSystemAndValue
public static long calculateHashSystemAndValue(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem, String theValue) -
calculateHashSystemAndValue
public static long calculateHashSystemAndValue(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem, String theValue) -
calculateHashValue
public static long calculateHashValue(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName, String theValue) -
calculateHashValue
public static long calculateHashValue(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theValue) -
getResource
Description copied from class:BaseResourceIndexedSearchParamGet the Resource this SP indexes- Specified by:
getResourcein classBaseResourceIndexedSearchParam
-
setResource
- Specified by:
setResourcein classBaseResourceIndexedSearchParam
-
truncateFieldsForDB
We truncate the fields at the last moment because the tables have limited size. We don't truncate earlier in the flow because the index hashes MUST be calculated on the full string.
-