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
@Embeddable
@Entity
public class ResourceIndexedSearchParamToken
extends BaseResourceIndexedSearchParam
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParam
myHashIdentity
-
Constructor Summary
ConstructorDescriptionConstructorResourceIndexedSearchParamToken
(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, boolean theMissing) ConstructorResourceIndexedSearchParamToken
(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, String theSystem, String theValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
static long
calculateHashSystem
(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem) static long
calculateHashSystem
(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem) static long
calculateHashSystemAndValue
(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem, String theValue) static long
calculateHashSystemAndValue
(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem, String theValue) static long
calculateHashValue
(PartitionSettings thePartitionSettings, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theValue) static long
calculateHashValue
(PartitionSettings thePartitionSettings, PartitionablePartitionId theRequestPartitionId, String theResourceType, String theParamName, String theValue) void
<T extends BaseResourceIndex>
voidcopyMutableValuesFrom
(T theSource) boolean
Subclasses must implementgetId()
Get the Resource this SP indexesgetValue()
int
hashCode()
Subclasses must implementboolean
matches
(ca.uhn.fhir.model.api.IQueryParameterType theParam) void
setResource
(ResourceTable theResource) void
ca.uhn.fhir.model.api.IQueryParameterType
toString()
void
We 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, setUpdated
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
setPartitionId, setPlaceholderHashesIfMissing
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId
-
Field Details
-
MAX_LENGTH
- 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:
copyMutableValuesFrom
in classBaseResourceIndexedSearchParam
-
clearHashes
- Specified by:
clearHashes
in classBaseResourceIndex
-
calculateHashes
- Specified by:
calculateHashes
in classBaseResourceIndex
-
equals
Description copied from class:BaseResourceIndex
Subclasses must implement- Specified by:
equals
in classBaseResourceIndex
-
getHashSystem
-
getHashSystemAndValue
-
getHashValue
-
getId
- Specified by:
getId
in classBaseResourceIndexedSearchParam
-
setId
- Specified by:
setId
in classBaseResourceIndex
-
getSystem
-
setSystem
-
getValue
-
setValue
-
hashCode
Description copied from class:BaseResourceIndex
Subclasses must implement- Specified by:
hashCode
in classBaseResourceIndex
-
toQueryParameterType
- Specified by:
toQueryParameterType
in classBaseResourceIndexedSearchParam
-
toString
- Overrides:
toString
in classBasePartitionable
-
matches
- Overrides:
matches
in 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:BaseResourceIndexedSearchParam
Get the Resource this SP indexes- Specified by:
getResource
in classBaseResourceIndexedSearchParam
-
setResource
- Specified by:
setResource
in 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.
-