org.apache.shardingsphere.sharding.spi.ShardingAlgorithm
Sharding Algorithm definition
org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm
Distributed Key Generating Algorithm definition
| 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 |
org.apache.shardingsphere.sharding.spi.ShardingAuditAlgorithm
Sharding audit algorithm definition
| Configuration Type | Description | Fully-qualified class name |
|---|---|---|
| DML_SHARDING_CONDITIONS | Prohibit DML auditing algorithm without sharding conditions | org.apache.shardingsphere.sharding.algorithm.audit.DMLShardingConditionsShardingAuditAlgorithm |
org.apache.shardingsphere.infra.datetime.DatetimeService
Obtain the current date for routing definition
| 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 |
