MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / pop

Method pop

include/rabitqlib/utils/buffer.hpp:59–67  ·  view source on GitHub ↗

get unchecked candidate with minimum distance

Source from the content-addressed store, hash-verified

57
58 // get unchecked candidate with minimum distance
59 PID pop() {
60 PID cur_id = data_[cur_].id;
61 set_checked(data_[cur_].id);
62 ++cur_;
63 while (cur_ < size_ && is_checked(data_[cur_].id)) {
64 ++cur_;
65 }
66 return cur_id;
67 }
68
69 void clear() {
70 size_ = 0;

Callers 15

distance_ratioFunction · 0.80
best_rescale_factorFunction · 0.80
centroids_distancesMethod · 0.80
searchMethod · 0.80
find_candidatesMethod · 0.80
search_base_layerMethod · 0.80
searchMethod · 0.80
searchKnnCloserFirstMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected