mirror of
https://github.com/lancedb/lancedb.git
synced 2026-07-05 03:50:40 +00:00
refactor: extract create_index module from table.rs (#3521)
## Summary - Extracts the `create_index` code cluster from `table.rs` into a new `rust/lancedb/src/table/create_index.rs` submodule, continuing the work from #2949. - Moves 8 `NativeTable` inherent methods (`load_indices`, `validate_index_type`, `build_ivf_params`, `get_num_sub_vectors`, `get_vector_dimension`, `resolve_index_field`, `make_index_params`, `get_index_type_for_field`) and 11 associated tests into the new module. - Reduces `table.rs` from ~5009 to ~3804 lines (-1205 lines) with no behavioral changes. ## Test plan UT
This commit is contained in:
File diff suppressed because it is too large
Load Diff
1399
rust/lancedb/src/table/create_index.rs
Normal file
1399
rust/lancedb/src/table/create_index.rs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user