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

Method probe

core/src/main/java/io/questdb/std/ObjHashSet.java:177–188  ·  view source on GitHub ↗
(T key, int index)

Source from the content-addressed store, hash-verified

175 }
176
177 private int probe(T key, int index) {
178 do {
179 index = (index + 1) & mask;
180 final T kv = keys[index];
181 if (kv == noEntryKey) {
182 return index;
183 }
184 if (kv == key || key.equals(kv)) {
185 return -index - 1;
186 }
187 } while (true);
188 }
189
190 @SuppressWarnings({"unchecked"})
191 private void rehash() {

Callers 2

keyIndexMethod · 0.95
removeAtMethod · 0.95

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected