Package ca.uhn.fhir.jpa.model.entity
Class BaseResourceIndex
java.lang.Object
ca.uhn.fhir.jpa.model.entity.BasePartitionable
ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BaseResourceIndexedCombo
,BaseResourceIndexedSearchParam
,ResourceLink
@MappedSuperclass
public abstract class BaseResourceIndex
extends BasePartitionable
implements Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
abstract void
abstract <T extends BaseResourceIndex>
voidcopyMutableValuesFrom
(T theSource) abstract boolean
Subclasses must implementabstract Long
getId()
abstract int
hashCode()
Subclasses must implementabstract void
void
setPartitionId
(PartitionablePartitionId thePartitionId) void
This is called when reindexing a resource on the previously existing index rows.Methods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId, toString
-
Constructor Details
-
BaseResourceIndex
public BaseResourceIndex()
-
-
Method Details
-
getId
-
setId
-
calculateHashes
-
clearHashes
-
setPartitionId
- Overrides:
setPartitionId
in classBasePartitionable
-
hashCode
Subclasses must implement -
equals
Subclasses must implement -
copyMutableValuesFrom
-
setPlaceholderHashesIfMissing
This is called when reindexing a resource on the previously existing index rows. This method should set zero/0 values for the hashes, in order to avoid any calculating hashes on existing rows failing. This is important only in cases where hashes are not present on the existing rows, which would only be the case if new hash columns have been added.
-