Data Sharding
Data Sharding
ShardingAlgorithm
Fully-qualified class name
org.apache.shardingsphere.sharding.spi.ShardingAlgorithm
Definition
Sharding Algorithm definition
Implementation classes
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.timeservice.spi.TimestampService
Definition
Obtain the current date for routing definition
Implementation classes
| Configuration Type | Description | Fully-qualified class name |
|---|---|---|
| DatabaseTimestampService | Get the current time from the database for routing | org.apache.shardingsphere.timeservice.type.database.DatabaseTimestampService |
| SystemTimestampService | Get the current time from the application system for routing | org.apache.shardingsphere.timeservice.type.system.SystemTimestampService |
InlineExpressionParser
Fully-qualified class name
org.apache.shardingsphere.infra.expr.spi.InlineExpressionParser
Definition
Row Value Expressions definition
Implementation classes
| Configuration Type | Description | Fully-qualified class name |
|---|---|---|
| GROOVY | Row Value Expressions that uses the Groovy syntax | org.apache.shardingsphere.infra.expr.groovy.GroovyInlineExpressionParser |
| LITERAL | Row Value Expressions that uses a standard list | org.apache.shardingsphere.infra.expr.literal.LiteralInlineExpressionParser |
| INTERVAL | Row Value Expressions based on fixed interval that uses the Key-Value syntax | org.apache.shardingsphere.infra.expr.interval.IntervalInlineExpressionParser |
| ESPRESSO | Row Value Expressions that uses the Groovy syntax based on GraalVM Truffle’s Espresso implementation | org.apache.shardingsphere.infra.expr.espresso.EspressoInlineExpressionParser |