Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dcapwell committed Jan 30, 2025
1 parent 1f48fdd commit bf27a67
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public String toString()
return sb.toString();
}
}

public class Row
{
public final Clustering<ByteBuffer> clustering;
Expand Down Expand Up @@ -394,7 +394,7 @@ public boolean isEmpty()
return Stream.of(columns).allMatch(b -> b == null );
}
}

public static class Factory
{
public final TableMetadata metadata;
Expand Down Expand Up @@ -466,13 +466,13 @@ public Factory(TableMetadata metadata)
private Comparator<Object> compareValue(AbstractType<?> type)
{
return (a, b) -> {
Value av = (Value) a;
Value bv = (Value) b;
if (!av.type.equals(type))
throw new IllegalArgumentException(String.format("Attempted to compare values of the wrong type; expected %s, actual %s", type.asCQL3Type(), av.type.asCQL3Type()));
if (!bv.type.equals(type))
throw new IllegalArgumentException(String.format("Attempted to compare values of the wrong type; expected %s, actual %s", type.asCQL3Type(), bv.type.asCQL3Type()));
return type.compare(av.value, bv.value);
Value av = (Value) a;
Value bv = (Value) b;
if (!av.type.equals(type))
throw new IllegalArgumentException(String.format("Attempted to compare values of the wrong type; expected %s, actual %s", type.asCQL3Type(), av.type.asCQL3Type()));
if (!bv.type.equals(type))
throw new IllegalArgumentException(String.format("Attempted to compare values of the wrong type; expected %s, actual %s", type.asCQL3Type(), bv.type.asCQL3Type()));
return type.compare(av.value, bv.value);
};
}

Expand Down

0 comments on commit bf27a67

Please sign in to comment.