class CassandraServiceImpl implements CassandraService<T> {

  @VisibleForTesting
  static double getRingFraction(List<TokenRange> tokenRanges) {
    double ringFraction = 0;
    for (TokenRange tokenRange : tokenRanges) {
      ringFraction =
          ringFraction
              + (distance(tokenRange.rangeStart, tokenRange.rangeEnd).doubleValue()
                  / SplitGenerator.getRangeSize(MURMUR3PARTITIONER).doubleValue());
    }
    return ringFraction;
  }

}