diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-01-11 16:01:43 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-01-11 16:01:43 +0100 |
commit | 91ca4512ca98c79144691afb06add0eac3d45ecf (patch) | |
tree | d9dd42fe01cbd7eacf2e7bc0306a878779b6a1c3 /searchlib | |
parent | 26ec76efc8e5d9d4d6b52d7f7cb6de059effa012 (diff) |
Update address space component names.
Diffstat (limited to 'searchlib')
4 files changed, 8 insertions, 8 deletions
diff --git a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp index 584335803a8..d00342d0e51 100644 --- a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp +++ b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp @@ -976,8 +976,8 @@ TEST_F("Populates address space usage", DenseTensorAttributeHnswIndex) const auto& all = usage.get_all(); EXPECT_EQUAL(3u, all.size()); EXPECT_EQUAL(1u, all.count("tensor-store")); - EXPECT_EQUAL(1u, all.count("hnsw-node-store")); - EXPECT_EQUAL(1u, all.count("hnsw-link-store")); + EXPECT_EQUAL(1u, all.count("hnsw-levels-store")); + EXPECT_EQUAL(1u, all.count("hnsw-links-store")); } diff --git a/searchlib/src/vespa/searchlib/attribute/address_space_components.cpp b/searchlib/src/vespa/searchlib/attribute/address_space_components.cpp index c8f2f93832a..244e01a3874 100644 --- a/searchlib/src/vespa/searchlib/attribute/address_space_components.cpp +++ b/searchlib/src/vespa/searchlib/attribute/address_space_components.cpp @@ -19,7 +19,7 @@ const vespalib::string AddressSpaceComponents::enum_store = "enum-store"; const vespalib::string AddressSpaceComponents::multi_value = "multi-value"; const vespalib::string AddressSpaceComponents::tensor_store = "tensor-store"; const vespalib::string AddressSpaceComponents::shared_string_repo = "shared-string-repo"; -const vespalib::string AddressSpaceComponents::hnsw_node_store = "hnsw-node-store"; -const vespalib::string AddressSpaceComponents::hnsw_link_store = "hnsw-link-store"; +const vespalib::string AddressSpaceComponents::hnsw_levels_store = "hnsw-levels-store"; +const vespalib::string AddressSpaceComponents::hnsw_links_store = "hnsw-links-store"; } diff --git a/searchlib/src/vespa/searchlib/attribute/address_space_components.h b/searchlib/src/vespa/searchlib/attribute/address_space_components.h index 3d409ece973..a8a41a024f8 100644 --- a/searchlib/src/vespa/searchlib/attribute/address_space_components.h +++ b/searchlib/src/vespa/searchlib/attribute/address_space_components.h @@ -18,8 +18,8 @@ public: static const vespalib::string multi_value; static const vespalib::string tensor_store; static const vespalib::string shared_string_repo; - static const vespalib::string hnsw_node_store; - static const vespalib::string hnsw_link_store; + static const vespalib::string hnsw_levels_store; + static const vespalib::string hnsw_links_store; }; } diff --git a/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp b/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp index aec86e95a98..abec443e13e 100644 --- a/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp +++ b/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp @@ -726,8 +726,8 @@ template <HnswIndexType type> void HnswIndex<type>::populate_address_space_usage(search::AddressSpaceUsage& usage) const { - usage.set(AddressSpaceComponents::hnsw_node_store, _graph.levels_store.addressSpaceUsage()); - usage.set(AddressSpaceComponents::hnsw_link_store, _graph.links_store.addressSpaceUsage()); + usage.set(AddressSpaceComponents::hnsw_levels_store, _graph.levels_store.addressSpaceUsage()); + usage.set(AddressSpaceComponents::hnsw_links_store, _graph.links_store.addressSpaceUsage()); } template <HnswIndexType type> |