// Path: src/main/java/com/elong/pb/newdda/client/constants/ShardingConstants.java
// public static final long AND_VALUE = PARTITION_LENGTH - 1;


import java.util.List;
import static com.elong.pb.newdda.client.constants.ShardingConstants.AND_VALUE;
package com.elong.pb.newdda.client.router.rule;



public class RangeTableRule implements TableRule {

    @Override
    public String calculate(String logicTableName, Long hash) {
        String targetTableName = null;
// Path: src/main/java/com/elong/pb/newdda/client/constants/ShardingConstants.java
// public static final long AND_VALUE = PARTITION_LENGTH - 1;


// Path: src/main/java/com/elong/pb/newdda/client/router/rule/RangeTableRule.java
import java.util.List;
import static com.elong.pb.newdda.client.constants.ShardingConstants.AND_VALUE;

package com.elong.pb.newdda.client.router.rule;



public class RangeTableRule implements TableRule {

    @Override
    public String calculate(String logicTableName, Long hash) {
        String targetTableName = null;
        int realPos = (int) (hash & AND_VALUE);