Package ca.uhn.fhir.jpa.model.config
Class PartitionSettings
java.lang.Object
ca.uhn.fhir.jpa.model.config.PartitionSettings
- Since:
- 5.0.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionShould resources references be permitted to cross partition boundaries.If set, the given ID will be used for the default partition.booleanIf set totrue(default isfalse) thePARTITION_IDvalue will be factored into the hash values used in theHFJ_SPIDX_xxxtables, removing the need to explicitly add a selector on this column in queries.booleanIf enabled (default isfalse) the JPA server will support data partitioningbooleanIf set totrue(default isfalse), partitions will be unnamed and all IDs fromInteger.MIN_VALUEthroughInteger.MAX_VALUEwill be allowed without needing to be created ahead of time.voidsetAllowReferencesAcrossPartitions(PartitionSettings.CrossPartitionReferenceMode theAllowReferencesAcrossPartitions)Should resources references be permitted to cross partition boundaries.voidsetDefaultPartitionId(Integer theDefaultPartitionId)If set, the given ID will be used for the default partition.setIncludePartitionInSearchHashes(boolean theIncludePartitionInSearchHashes)If set totrue(default isfalse) thePARTITION_IDvalue will be factored into the hash values used in theHFJ_SPIDX_xxxtables, removing the need to explicitly add a selector on this column in queries.voidsetPartitioningEnabled(boolean theMultiTenancyEnabled)If enabled (default isfalse) the JPA server will support data partitioningvoidsetUnnamedPartitionMode(boolean theUnnamedPartitionMode)If set totrue(default isfalse), partitions will be unnamed and all IDs fromInteger.MIN_VALUEthroughInteger.MAX_VALUEwill be allowed without needing to be created ahead of time.
-
Constructor Details
-
PartitionSettings
public PartitionSettings()
-
-
Method Details
-
isIncludePartitionInSearchHashes
If set totrue(default isfalse) thePARTITION_IDvalue will be factored into the hash values used in theHFJ_SPIDX_xxxtables, removing the need to explicitly add a selector on this column in queries. If set tofalse, an additional selector is used instead, which may perform better when using native database partitioning features.This setting has no effect if partitioning is not enabled via
isPartitioningEnabled(). -
setIncludePartitionInSearchHashes
public PartitionSettings setIncludePartitionInSearchHashes(boolean theIncludePartitionInSearchHashes)If set totrue(default isfalse) thePARTITION_IDvalue will be factored into the hash values used in theHFJ_SPIDX_xxxtables, removing the need to explicitly add a selector on this column in queries. If set tofalse, an additional selector is used instead, which may perform better when using native database partitioning features.This setting has no effect if partitioning is not enabled via
isPartitioningEnabled(). -
isPartitioningEnabled
If enabled (default isfalse) the JPA server will support data partitioning- Since:
- 5.0.0
-
setPartitioningEnabled
If enabled (default isfalse) the JPA server will support data partitioning- Since:
- 5.0.0
-
getAllowReferencesAcrossPartitions
Should resources references be permitted to cross partition boundaries. Default isPartitionSettings.CrossPartitionReferenceMode.NOT_ALLOWED.- Since:
- 5.0.0
-
setAllowReferencesAcrossPartitions
public void setAllowReferencesAcrossPartitions(PartitionSettings.CrossPartitionReferenceMode theAllowReferencesAcrossPartitions)Should resources references be permitted to cross partition boundaries. Default isPartitionSettings.CrossPartitionReferenceMode.NOT_ALLOWED.- Since:
- 5.0.0
-
isUnnamedPartitionMode
If set totrue(default isfalse), partitions will be unnamed and all IDs fromInteger.MIN_VALUEthroughInteger.MAX_VALUEwill be allowed without needing to be created ahead of time.- Since:
- 5.5.0
-
setUnnamedPartitionMode
If set totrue(default isfalse), partitions will be unnamed and all IDs fromInteger.MIN_VALUEthroughInteger.MAX_VALUEwill be allowed without needing to be created ahead of time.- Since:
- 5.5.0
-
getDefaultPartitionId
If set, the given ID will be used for the default partition. The default isnullwhich will result in the use of a null value for default partition items.- Since:
- 5.5.0
-
setDefaultPartitionId
If set, the given ID will be used for the default partition. The default isnullwhich will result in the use of a null value for default partition items.- Since:
- 5.5.0
-