}
private static String convertKeyModFilter(KeyModFilter filter)
{
long buckets = filter.getNumBuckets();
Range range = filter.getBktRange();
StringBuffer sql = new StringBuffer();
// MySQL SIGNED INT is always 64 bits (Confirmed with antony), this should support java long keys.
sql.append(KEYCOLUMN + "%" +buckets+" >= ");
sql.append(range.getStart());
sql.append(" AND ");
sql.append(KEYCOLUMN + "%" +buckets+ " < ");
sql.append(range.getEnd());
return sql.toString();
}