RaigorJiang commented on issue #10357:
URL: 
https://github.com/apache/shardingsphere/issues/10357#issuecomment-842718000


   Hi @SeniorBoy 
   ClassBasedShardingAlgorithm is not a interface, it's just a way to configure 
a custom sharding algorithm.
   For example:
   1. Define a custom sharding algorithm implements StandardShardingAlgorithm, 
named 'MyShardingAlgorithm'
   2. Configure 'shardingAlgorithms' with 'MyShardingAlgorithm', like: 
   >   shardingAlgorithms:
        &emsp;<sharding-algorithm-name\>:
        &emsp;&emsp;type: CLASS_BASED
        &emsp;&emsp;props:
        &emsp;&emsp;&emsp;strategy: standard
        &emsp;&emsp;&emsp;algorithmClassName: 
org.xxx.example.MyShardingAlgorithm
      
   I hope this information is useful to you.
   
   


-- 
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:
[email protected]


Reply via email to