class DecimalStringSplit implements org.apache.hadoop.hbase.util.RegionSplitter.SplitAlgorithm {

    @VisibleForTesting
    static int splitPoint(int numRegions, int cardinality, int index) {
        if (numRegions < index + 2) throw new IndexOutOfBoundsException("numRegions < index + 2");
        if (numRegions > cardinality) throw new IllegalArgumentException("numRegions > cardinality");

        return (int) (Math.floor((double) cardinality / (double) numRegions * (double)(index + 1)));
    }

    public  DecimalStringSplit(int cardinality);

}