From 121934237ebd3528a0b6a7906b88c1680e544110 Mon Sep 17 00:00:00 2001 From: Kip Date: Mon, 4 Nov 2024 18:00:06 -0800 Subject: [PATCH] bruteforce.h: Added getMaxElements() and getCurrentElementCount() interfaces... --- hnswlib/bruteforce.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hnswlib/bruteforce.h b/hnswlib/bruteforce.h index 8727cc8a..25117dee 100644 --- a/hnswlib/bruteforce.h +++ b/hnswlib/bruteforce.h @@ -83,6 +83,16 @@ class BruteforceSearch : public AlgorithmInterface { } + size_t getMaxElements() { + return maxelements_; + } + + + size_t getCurrentElementCount() { + return cur_element_count; + } + + void removePoint(labeltype cur_external) { std::unique_lock lock(index_lock);