public static int rangeRing(String key){//, int shardsAmount){ //by rangeRing (MongoDB simple implementation)
        /*if (DataPartition.shardsAmount == 0 || DataPartition.shardsAmount != shardsAmount){
            constructRangeRing(shardsAmount);
            DataPartition.shardsAmount = shardsAmount;
        }                                             */
        int i = 0;
        while ((int)key.charAt(i) < 65 || ((int)key.charAt(i) > 90 && (int)key.charAt(i) < 97) || (int)key.charAt(i) > 122)
            ++i;
        //System.out.println(key.charAt(i));
        return rangeRingTree.get((int)key.charAt(i));
    }