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

Method keyIndex

core/src/main/java/io/questdb/std/ObjHashSet.java:117–130  ·  view source on GitHub ↗
(T key)

Source from the content-addressed store, hash-verified

115 }
116
117 public int keyIndex(T key) {
118 int index = idx(key);
119
120 T kv = keys[index];
121 if (kv == noEntryKey) {
122 return index;
123 }
124
125 if (kv == key || key.equals(kv)) {
126 return -index - 1;
127 }
128
129 return probe(key, index);
130 }
131
132 @Override
133 @SuppressWarnings("unchecked")

Callers 15

testBasicOperationsMethod · 0.95
addMethod · 0.95
containsMethod · 0.95
removeMethod · 0.95
rehashMethod · 0.95
checkLiteralIsInSetMethod · 0.45
testAllMethod · 0.45
testNoEntryValueMethod · 0.45
testAllMethod · 0.45
testAllMethod · 0.45
testPartialLookupMethod · 0.45
testSaturationMethod · 0.45

Calls 3

idxMethod · 0.95
probeMethod · 0.95
equalsMethod · 0.65

Tested by 15

testBasicOperationsMethod · 0.76
checkLiteralIsInSetMethod · 0.36
testAllMethod · 0.36
testNoEntryValueMethod · 0.36
testAllMethod · 0.36
testAllMethod · 0.36
testPartialLookupMethod · 0.36
testSaturationMethod · 0.36
testSaturationMethod · 0.36