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

Method remove

core/src/main/java/io/questdb/std/ObjHashSet.java:132–142  ·  view source on GitHub ↗
(Object key)

Source from the content-addressed store, hash-verified

130 }
131
132 @Override
133 @SuppressWarnings("unchecked")
134 public boolean remove(Object key) {
135 int keyIndex = keyIndex((T) key);
136 if (keyIndex < 0) {
137 list.remove(keys[-keyIndex - 1]);
138 removeAt(keyIndex);
139 return true;
140 }
141 return false;
142 }
143
144 public int size() {
145 return capacity - free;

Callers 1

testRemoveMethod · 0.95

Calls 3

keyIndexMethod · 0.95
removeAtMethod · 0.95
removeMethod · 0.65

Tested by 1

testRemoveMethod · 0.76