tristaZero commented on issue #5280:
URL: https://github.com/apache/shardingsphere/issues/5280#issuecomment-618203783


   
   ### How
   1. Fork this project and clone your fork one to local.
   2. Install this project.
   3. Create your sharding algorithm in 
`./incubator-shardingsphere/sharding-core/sharding-core-common/src/main/java/org/apache/shardingsphere/core/strategy/algorithm/sharding/`
   4. Implement `StandardShardingAlgorithm` interface.
   5. Add unit test to check what you coded in 
`./incubator-shardingsphere/sharding-core/sharding-core-common/src/test/java/org/apache/shardingsphere/core/strategy/algorithm/sharding/inline`
   
   ### Note
   1. This issue is to call for `Range` sharding algorithm. You should look at 
other issues for your concern.
   2. Please comment `Ref #` and give some explanation when you raize a PR.
   3. Please make sure your sharding algorithm does not include your business 
logic. A sharding algorithm likely to be used universally is the best.
   4. `InlineShardingAlgorithm` and `InlineShardingAlgorithmTest` give you good 
examples of implementation and its unit test.
   5. `getType()` of  `ShardingAlgorithm` is expected to return the algorithm 
ID with capital letters.


----------------------------------------------------------------
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