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

Method scanUp

core/src/main/java/io/questdb/std/DoubleList.java:344–356  ·  view source on GitHub ↗
(double value, int low, int high)

Source from the content-addressed store, hash-verified

342 }
343
344 private int scanUp(double value, int low, int high) {
345 for (int i = low; i < high; i++) {
346 double that = data[i];
347 int cmp = Numbers.compare(that, value);
348 if (cmp == 0) {
349 return i;
350 }
351 if (cmp > 0) {
352 return -(i + 1);
353 }
354 }
355 return -(high + 1);
356 }
357
358 private int scrollDown(int low, int high, double value) {
359 do {

Callers 1

binarySearchMethod · 0.95

Calls 1

compareMethod · 0.95

Tested by

no test coverage detected