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:
Xuanyi Li
2026-06-11 14:06:44 -07:00
committed by GitHub
parent f8caef3aca
commit 49815da933
2 changed files with 1405 additions and 1405 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff