private String getQueryString(String family, KeyCondition<String> condition) {
if (condition instanceof KeyAtom) {
KeyAtom<String> atom = (KeyAtom<String>) condition;
Object value = atom.getCondition();
String key = atom.getKey();
Relation relation = atom.getRelation();
if (value instanceof Number || value instanceof Interval) {
Preconditions.checkArgument(relation instanceof Cmp, "Relation not supported on numeric types: " + relation);
if (relation == Cmp.INTERVAL) {
Preconditions.checkArgument(value instanceof Interval && ((Interval<?>) value).getStart() instanceof Number);
Interval<?> i = (Interval<?>) value;