MCPcopy Create free account
hub / github.com/questdb/questdb / compare

Method compare

core/src/main/java/io/questdb/std/Decimal128.java:262–268  ·  view source on GitHub ↗

Compares 2 Decimal128, ignoring scaling.

(long aHi, long aLo, long bHi, long bLo)

Source from the content-addressed store, hash-verified

260 * Compares 2 Decimal128, ignoring scaling.
261 */
262 public static int compare(long aHi, long aLo, long bHi, long bLo) {
263 int s = Long.compare(aHi, bHi);
264 if (s != 0) {
265 return s;
266 }
267 return Long.compareUnsigned(aLo, bLo);
268 }
269
270 public static int compare(Decimal128 a, Decimal128 b) {
271 int s = Long.compare(a.getHigh(), b.getHigh());

Callers 9

shouldStoreAMethod · 0.95
overflowsLongMethod · 0.95
overflowsShortMethod · 0.95
overflowsByteMethod · 0.95
overflowsIntMethod · 0.95
getDecimal128Method · 0.95
compareToMethod · 0.95
hasOverflowedMethod · 0.95
compareTo0Method · 0.95

Calls 4

compareUnsignedMethod · 0.80
getHighMethod · 0.80
getLowMethod · 0.80
compareMethod · 0.65

Tested by

no test coverage detected