Apache ShardingSphere · JSON Structure

Apache Shardingsphere Sharding Strategy Structure

Sharding strategy definition

Type: object Properties: 3
DatabaseDistributed SQLRead-Write SplittingShardingSQLApacheOpen Source

ShardingStrategy is a JSON Structure definition published by Apache ShardingSphere, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

type shardingColumn shardingAlgorithmName

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shardingsphere/refs/heads/main/json-structure/apache-shardingsphere-sharding-strategy-structure.json",
  "description": "Sharding strategy definition",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "standard",
        "complex",
        "hint",
        "none"
      ],
      "description": "Strategy type"
    },
    "shardingColumn": {
      "type": "string",
      "description": "Column used for sharding"
    },
    "shardingAlgorithmName": {
      "type": "string",
      "description": "Sharding algorithm reference"
    }
  },
  "name": "ShardingStrategy"
}