ShardingAlgorithm

Fully-qualified class name

org.apache.shardingsphere.sharding.spi.ShardingAlgorithm

Definition

Sharding Algorithm definition

Implementation classes

Configuration TypeAuto Create TablesDescriptionFully-qualified class name
MODYModulo sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.mod.ModShardingAlgorithm
HASH_MODYHash modulo sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.mod.HashModShardingAlgorithm
BOUNDARY_RANGEYBoundary based range sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.range.BoundaryBasedRangeShardingAlgorithm
VOLUME_RANGEYVolume based range sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.range.VolumeBasedRangeShardingAlgorithm
AUTO_INTERVALYMutable interval sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.datetime.AutoIntervalShardingAlgorithm
INTERVALNFixed interval sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.datetime.IntervalShardingAlgorithm
CLASS_BASEDNClass based sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.classbased.ClassBasedShardingAlgorithm
INLINENInline sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.inline.InlineShardingAlgorithm
COMPLEX_INLINENComplex inline sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.complex.ComplexInlineShardingAlgorithm
HINT_INLINENHint inline sharding algorithmorg.apache.shardingsphere.sharding.algorithm.sharding.hint.HintInlineShardingAlgorithm

KeyGenerateAlgorithm

Fully-qualified class name

org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm

Definition

Distributed Key Generating Algorithm definition

Implementation classes

Configuration TypeDescriptionFully-qualified class name
SNOWFLAKESnowflake key generate algorithmorg.apache.shardingsphere.sharding.algorithm.keygen.SnowflakeKeyGenerateAlgorithm
UUIDUUID key generate algorithmorg.apache.shardingsphere.sharding.algorithm.keygen.UUIDKeyGenerateAlgorithm

ShardingAuditAlgorithm

Fully-qualified class name

org.apache.shardingsphere.sharding.spi.ShardingAuditAlgorithm

Definition

Sharding audit algorithm definition

Implementation classes

Configuration TypeDescriptionFully-qualified class name
DML_SHARDING_CONDITIONSProhibit DML auditing algorithm without sharding conditionsorg.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 TypeDescriptionFully-qualified class name
DatabaseTimestampServiceGet the current time from the database for routingorg.apache.shardingsphere.timeservice.type.database.DatabaseTimestampService
SystemTimestampServiceGet the current time from the application system for routingorg.apache.shardingsphere.timeservice.type.system.SystemTimestampService

InlineExpressionParser

Fully-qualified class name

org.apache.shardingsphere.infra.expr.core.InlineExpressionParser

Definition

Row Value Expressions definition

Implementation classes

Configuration TypeDescriptionFully-qualified class name
GROOVYRow Value Expressions that uses the Groovy syntaxorg.apache.shardingsphere.infra.expr.groovy.GroovyInlineExpressionParser
LITERALRow Value Expressions that uses a standard listorg.apache.shardingsphere.infra.expr.literal.LiteralInlineExpressionParser
ESPRESSORow Value Expressions that uses the Groovy syntax based on GraalVM Truffle’s Espresso implementationorg.apache.shardingsphere.infra.expr.espresso.EspressoInlineExpressionParser