|
32 | 32 | #ifndef TILEDB_VAMANA_GROUP_H |
33 | 33 | #define TILEDB_VAMANA_GROUP_H |
34 | 34 |
|
| 35 | +#include "detail/linalg/tdb_helpers.h" |
35 | 36 | #include "index/index_defs.h" |
36 | 37 | #include "index/index_group.h" |
37 | 38 | #include "index/vamana_metadata.h" |
@@ -280,45 +281,45 @@ class vamana_index_group : public base_index_group<vamana_index_group<Index>> { |
280 | 281 | this->get_dimension(), |
281 | 282 | default_tile_extent, |
282 | 283 | default_compression); |
283 | | - write_group.add_member( |
284 | | - feature_vectors_array_name(), true, feature_vectors_array_name()); |
| 284 | + tiledb_helpers::add_to_group( |
| 285 | + write_group, feature_vectors_uri(), feature_vectors_array_name()); |
285 | 286 |
|
286 | 287 | create_empty_for_vector<typename index_type::id_type>( |
287 | 288 | cached_ctx_, |
288 | 289 | feature_vector_ids_uri(), |
289 | 290 | default_domain, |
290 | 291 | tile_size, |
291 | 292 | default_compression); |
292 | | - write_group.add_member( |
293 | | - feature_vector_ids_name(), true, feature_vector_ids_name()); |
| 293 | + tiledb_helpers::add_to_group( |
| 294 | + write_group, feature_vector_ids_uri(), feature_vector_ids_name()); |
294 | 295 |
|
295 | 296 | create_empty_for_vector<typename index_type::score_type>( |
296 | 297 | cached_ctx_, |
297 | 298 | adjacency_scores_uri(), |
298 | 299 | default_domain, |
299 | 300 | tile_size, |
300 | 301 | default_compression); |
301 | | - write_group.add_member( |
302 | | - adjacency_scores_array_name(), true, adjacency_scores_array_name()); |
| 302 | + tiledb_helpers::add_to_group( |
| 303 | + write_group, adjacency_scores_uri(), adjacency_scores_array_name()); |
303 | 304 |
|
304 | 305 | create_empty_for_vector<typename index_type::id_type>( |
305 | 306 | cached_ctx_, |
306 | 307 | adjacency_ids_uri(), |
307 | 308 | default_domain, |
308 | 309 | tile_size, |
309 | 310 | default_compression); |
310 | | - write_group.add_member( |
311 | | - adjacency_ids_array_name(), true, adjacency_ids_array_name()); |
| 311 | + tiledb_helpers::add_to_group( |
| 312 | + write_group, adjacency_ids_uri(), adjacency_ids_array_name()); |
312 | 313 |
|
313 | 314 | create_empty_for_vector<typename index_type::id_type>( |
314 | 315 | cached_ctx_, |
315 | 316 | adjacency_row_index_uri(), |
316 | 317 | default_domain, |
317 | 318 | tile_size, |
318 | 319 | default_compression); |
319 | | - write_group.add_member( |
320 | | - adjacency_row_index_array_name(), |
321 | | - true, |
| 320 | + tiledb_helpers::add_to_group( |
| 321 | + write_group, |
| 322 | + adjacency_row_index_uri(), |
322 | 323 | adjacency_row_index_array_name()); |
323 | 324 |
|
324 | 325 | // Store the metadata if all of the arrays were created successfully |
|
0 commit comments