You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/12/04 08:37:17 UTC
[GitHub] [shardingsphere] RaigorJiang commented on issue #8330: Create a built-in sharding algorithm SPI in 5.x, which allows users to directly configure the class name as in 4.x
RaigorJiang commented on issue #8330:
URL: https://github.com/apache/shardingsphere/issues/8330#issuecomment-738645597
Hi all:
Because the precise sharding method and range sharding method are both in standard sharding algorithm interface now,
I remove the 'preciseAlgorithmClassName' and 'rangeAlgorithmClassName' variables, and unified as "algorithmClassName". So finally the configuration format is :
> #
shardingAlgorithms:
<sharding-algorithm-name>:
type: CLASS_BASED
props:
strategy: standard
algorithmClassName: org.xxx.example.StandardShardingAlgorithm
<sharding-algorithm-name>:
type: CLASS_BASED
props:
strategy: complex
algorithmClassName: org.xxx.example.ComplexKeysShardingAlgorithm
<sharding-algorithm-name>:
type: CLASS_BASED
props:
strategy: hint
algorithmClassName: org.xxx.example.HintShardingAlgorithm
# ...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org