diff options
author | Geir Storli <geirst@verizonmedia.com> | 2020-06-19 12:13:29 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2020-06-19 12:13:29 +0000 |
commit | c56ffa5e2735b6e3873aa18edc5e54a9128f3108 (patch) | |
tree | b64c3bbc9cee9bd5b0900bfe51cac5a4686c08f6 /searchcommon/src | |
parent | cdc65c6b2b0734fb97b7f466ba0139ce6406559c (diff) |
Wire flag to enable multi-threaded indexing for a hnsw index.
Diffstat (limited to 'searchcommon/src')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/hnsw_index_params.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/hnsw_index_params.h b/searchcommon/src/vespa/searchcommon/attribute/hnsw_index_params.h index c8b196023d6..5f974f509c6 100644 --- a/searchcommon/src/vespa/searchcommon/attribute/hnsw_index_params.h +++ b/searchcommon/src/vespa/searchcommon/attribute/hnsw_index_params.h @@ -16,29 +16,29 @@ private: uint32_t _neighbors_to_explore_at_insert; // This is always the same as in the attribute config, and is duplicated here to simplify usage. DistanceMetric _distance_metric; - bool _allow_multi_threaded_indexing; + bool _multi_threaded_indexing; public: HnswIndexParams(uint32_t max_links_per_node_in, uint32_t neighbors_to_explore_at_insert_in, DistanceMetric distance_metric_in, - bool allow_multi_threaded_indexing_in = false) + bool multi_threaded_indexing_in = false) : _max_links_per_node(max_links_per_node_in), _neighbors_to_explore_at_insert(neighbors_to_explore_at_insert_in), _distance_metric(distance_metric_in), - _allow_multi_threaded_indexing(allow_multi_threaded_indexing_in) + _multi_threaded_indexing(multi_threaded_indexing_in) {} uint32_t max_links_per_node() const { return _max_links_per_node; } uint32_t neighbors_to_explore_at_insert() const { return _neighbors_to_explore_at_insert; } DistanceMetric distance_metric() const { return _distance_metric; } - bool allow_multi_threaded_indexing() const { return _allow_multi_threaded_indexing; } + bool multi_threaded_indexing() const { return _multi_threaded_indexing; } bool operator==(const HnswIndexParams& rhs) const { return (_max_links_per_node == rhs._max_links_per_node && _neighbors_to_explore_at_insert == rhs._neighbors_to_explore_at_insert && _distance_metric == rhs._distance_metric && - _allow_multi_threaded_indexing == rhs._allow_multi_threaded_indexing); + _multi_threaded_indexing == rhs._multi_threaded_indexing); } }; |