}
public static void validateKeyRange(String start_key, String end_key, int row_count) throws InvalidRequestException
{
IPartitioner p = StorageService.getPartitioner();
Token startToken = p.decorateKey(start_key).token;
Token endToken = p.decorateKey(end_key).token;
if (startToken.compareTo(endToken) > 0 && !endToken.equals(p.getMinimumToken()))
{
if (p instanceof RandomPartitioner)
throw new InvalidRequestException("start key's md5 sorts after end key's md5. this is not allowed; you probably should not specify end key at all, under RandomPartitioner");