MCPcopy Index your code
hub / github.com/questdb/questdb / compare

Method compare

core/src/main/java/io/questdb/std/Numbers.java:613–627  ·  view source on GitHub ↗
(double a, double b)

Source from the content-addressed store, hash-verified

611 }
612
613 public static int compare(double a, double b) {
614 if (equals(a, b)) {
615 return 0;
616 }
617
618 if (a < b) {
619 return -1;
620 }
621
622 if (a > b) {
623 return 1;
624 }
625
626 return Boolean.compare(Numbers.isNull(a), Numbers.isNull(b));
627 }
628
629 public static int compare(float a, float b) {
630 if (equals(a, b)) {

Callers 9

testDoubleCompareMethod · 0.95
testFloatCompareMethod · 0.95
binarySearchMethod · 0.95
equalsMethod · 0.95
scanDownMethod · 0.95
scanUpMethod · 0.95
scrollDownMethod · 0.95
scrollUpMethod · 0.95

Calls 3

equalsMethod · 0.95
isNullMethod · 0.95
compareMethod · 0.65

Tested by 2

testDoubleCompareMethod · 0.76
testFloatCompareMethod · 0.76