org.apache.shardingsphere.sharding.spi.ShardingAlgorithm
分片算法
org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm
分布式主键生成算法
配置标识 | 详细说明 | 全限定类名 |
---|---|---|
SNOWFLAKE | 基于雪花算法的分布式主键生成算法 | org.apache.shardingsphere.sharding.algorithm.keygen.SnowflakeKeyGenerateAlgorithm |
UUID | 基于 UUID 的分布式主键生成算法 | org.apache.shardingsphere.sharding.algorithm.keygen.UUIDKeyGenerateAlgorithm |
org.apache.shardingsphere.sharding.spi.ShardingAuditAlgorithm
分片审计算法
配置标识 | 详细说明 | 全限定类名 |
---|---|---|
DML_SHARDING_CONDITIONS | 禁止不带分片键的DML审计算法 | org.apache.shardingsphere.sharding.algorithm.audit.DMLShardingConditionsShardingAuditAlgorithm |
org.apache.shardingsphere.timeservice.spi.TimestampService
获取当前时间进行路由
配置标识 | 详细说明 | 全限定类名 |
---|---|---|
DatabaseTimestampService | 从数据库中获取当前时间进行路由 | org.apache.shardingsphere.timeservice.type.database.DatabaseTimestampService |
SystemTimestampService | 从应用系统时间中获取当前时间进行路由 | org.apache.shardingsphere.timeservice.type.system.SystemTimestampService |
org.apache.shardingsphere.infra.expr.core.InlineExpressionParser
解析行表达式
配置标识 | 详细说明 | 全限定类名 |
---|---|---|
GROOVY | 使用 Groovy 语法的行表达式 | org.apache.shardingsphere.infra.expr.groovy.GroovyInlineExpressionParser |
LITERAL | 使用标准列表的行表达式 | org.apache.shardingsphere.infra.expr.literal.LiteralInlineExpressionParser |