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 2022/02/14 01:58:51 UTC

[GitHub] [shardingsphere] anonymous-lj commented on issue #15152: No value specified for parameter

anonymous-lj commented on issue #15152:
URL: https://github.com/apache/shardingsphere/issues/15152#issuecomment-1038545734


   `public class CustomSharding implements StandardShardingAlgorithm<Comparable<?>> {
   
       @Override
       public void init() {
       }
   
       @Override
       public String getType() {
           return "custom-sharding";
       }
   
       @Override
       public String doSharding(Collection<String> availableTargetNames, PreciseShardingValue<Comparable<?>> shardingValue) {
           return "api_flow";
       }
   
       @Override
       public Collection<String> doSharding(Collection collection, RangeShardingValue rangeShardingValue) {
           return null;
       }
   }`


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org