Retro Eye care Haitian Deep Dark Default

ShardingAlgorithm

Fully-qualified class name

org.apache.shardingsphere.sharding.spi.ShardingAlgorithm

Definition

Sharding Algorithm definition

Implementation classes

Configuration Type Auto Create Tables Description Fully-qualified class name
MOD Y Modulo sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.mod.ModShardingAlgorithm
HASH_MOD Y Hash modulo sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.mod.HashModShardingAlgorithm
BOUNDARY_RANGE Y Boundary based range sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.range.BoundaryBasedRangeShardingAlgorithm
VOLUME_RANGE Y Volume based range sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.range.VolumeBasedRangeShardingAlgorithm
AUTO_INTERVAL Y Mutable interval sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.datetime.AutoIntervalShardingAlgorithm
INTERVAL N Fixed interval sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.datetime.IntervalShardingAlgorithm
CLASS_BASED N Class based sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.classbased.ClassBasedShardingAlgorithm
INLINE N Inline sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.inline.InlineShardingAlgorithm
COMPLEX_INLINE N Complex inline sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.complex.ComplexInlineShardingAlgorithm
HINT_INLINE N Hint inline sharding algorithm org.apache.shardingsphere.sharding.algorithm.sharding.hint.HintInlineShardingAlgorithm
COSID_MOD N Modulo sharding algorithm provided by CosId org.apache.shardingsphere.sharding.cosid.algorithm.sharding.mod.CosIdModShardingAlgorithm
COSID_INTERVAL N Fixed interval sharding algorithm provided by CosId org.apache.shardingsphere.sharding.cosid.algorithm.sharding.interval.CosIdIntervalShardingAlgorithm
COSID_INTERVAL_SNOWFLAKE N Snowflake key-based fixed interval sharding algorithm provided by CosId org.apache.shardingsphere.sharding.cosid.algorithm.sharding.interval.CosIdSnowflakeIntervalShardingAlgorithm

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