MCPcopy
hub / github.com/questdb/questdb / swap

Method swap

core/src/main/java/io/questdb/std/LongSort.java:524–528  ·  view source on GitHub ↗
(LongVec vec, int a, int b)

Source from the content-addressed store, hash-verified

522 }
523
524 private static void swap(LongVec vec, int a, int b) {
525 long tmp = vec.getQuick(a);
526 vec.setQuick(a, vec.getQuick(b));
527 vec.setQuick(b, tmp);
528 }
529}

Callers 1

sortMethod · 0.95

Calls 2

getQuickMethod · 0.65
setQuickMethod · 0.65

Tested by

no test coverage detected