ShardingAlgorithm
Fully-qualified class name
org.apache.shardingsphere.sharding.spi.ShardingAlgorithm
Definition
Sharding Algorithm definition
Implementation classes
KeyGenerateAlgorithm
Fully-qualified class name
org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm
Definition
Distributed Key Generating Algorithm definition
Implementation classes
Configuration Type | Description | Fully-qualified class name |
---|---|---|
SNOWFLAKE | Snowflake key generate algorithm | org.apache.shardingsphere.sharding.algorithm.keygen.SnowflakeKeyGenerateAlgorithm |
UUID | UUID key generate algorithm | org.apache.shardingsphere.sharding.algorithm.keygen.UUIDKeyGenerateAlgorithm |
NANOID | NanoId key generate algorithm | org.apache.shardingsphere.sharding.nanoid.algorithm.keygen.NanoIdKeyGenerateAlgorithm |
COSID | CosId key generate algorithm | org.apache.shardingsphere.sharding.cosid.algorithm.keygen.CosIdKeyGenerateAlgorithm |
COSID_SNOWFLAKE | Snowflake key generate algorithm provided by CosId | org.apache.shardingsphere.sharding.cosid.algorithm.keygen.CosIdSnowflakeKeyGenerateAlgorithm |
ShardingAuditAlgorithm
Fully-qualified class name
org.apache.shardingsphere.sharding.spi.ShardingAuditAlgorithm
Definition
Sharding audit algorithm definition
Implementation classes
Configuration Type | Description | Fully-qualified class name |
---|---|---|
DML_SHARDING_CONDITIONS | Prohibit DML auditing algorithm without sharding conditions | org.apache.shardingsphere.sharding.algorithm.audit.DMLShardingConditionsShardingAuditAlgorithm |
DatetimeService
Fully-qualified class name
org.apache.shardingsphere.infra.datetime.DatetimeService
Definition
Obtain the current date for routing definition
Implementation classes
Configuration Type | Description | Fully-qualified class name |
---|---|---|
DatabaseDatetimeService | Get the current time from the database for routing | org.apache.shardingsphere.agent.metrics.prometheus.service.PrometheusPluginBootService |
SystemDatetime | Get the current time from the application system for routing | org.apache.shardingsphere.datetime.system.SystemDatetimeService |
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .