MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Remove

Method Remove

tensorflow/core/framework/embedding/leveldb_kv.h:154–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153
154 Status Remove(K key) override {
155 counter_->sub(key, 1);
156 leveldb::Slice db_key((char*)(&key), sizeof(void*));
157 leveldb::Status s = db_->Delete(WriteOptions(), db_key);
158 if (s.ok()) {
159 return Status::OK();
160 } else {
161 return errors::NotFound(
162 "Unable to find Key: ", key, " in RocksDB.");
163 }
164 }
165
166 Status GetSnapshot(std::vector<K>* key_list,
167 std::vector<void*>* value_ptr_list) override {

Callers 3

FilterToDeleteMethod · 0.45
FilterToDeleteMethod · 0.45
ExportAndRemoveMethod · 0.45

Calls 4

NotFoundFunction · 0.85
subMethod · 0.45
DeleteMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected