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

Method compare

core/src/main/java/io/questdb/std/Long128.java:35–46  ·  view source on GitHub ↗
(long aHi, long aLo, long bHi, long bLo)

Source from the content-addressed store, hash-verified

33 // instead as A, B records.
34 // See special cases for Long128 in RecordComparatorCompiler
35 public static int compare(long aHi, long aLo, long bHi, long bLo) {
36
37 if (aHi < bHi) {
38 return -1;
39 }
40
41 if (aHi > bHi) {
42 return 1;
43 }
44
45 return Long.compareUnsigned(aLo, bLo);
46 }
47
48 public static boolean isNull(long lo, long hi) {
49 return hi == Numbers.LONG_NULL && lo == Numbers.LONG_NULL;

Callers

nothing calls this directly

Calls 1

compareUnsignedMethod · 0.80

Tested by

no test coverage detected