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

Method get

include/rabitqlib/utils/hashset.hpp:81–87  ·  view source on GitHub ↗

get if data_id is in the hashset

Source from the content-addressed store, hash-verified

79
80 // get if data_id is in the hashset
81 [[nodiscard]] bool get(PID data_id) const {
82 PID val = this->table_[hash1(data_id)];
83 if (val == data_id) {
84 return true;
85 }
86 return (val != kPidMax && stl_hash_.find(data_id) != stl_hash_.end());
87 }
88
89 void set(PID data_id) {
90 PID& val = table_[hash1(data_id)];

Callers 7

searchMethod · 0.45
scan_neighborsMethod · 0.45
update_resultsMethod · 0.45
find_candidatesMethod · 0.45
search_new_neighborsMethod · 0.45
search_base_layerMethod · 0.45

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected