Commit d29d5d3
refactor(index): introduce lance-index-core crate with abstract index trait layer
Extracts the abstract trait layer for scalar indices into a new
`lance-index-core` crate (~17 deps vs 75+ in lance-index), enabling
index plugin authors to implement ScalarIndex without depending on
the full lance-index implementation crate.
Moved to lance-index-core: Index, IndexType, IndexParams, MetricsCollector,
ScalarIndex, AnyQuery, IndexStore/Reader/Writer, RowIdRemapper, SearchResult,
CreatedIndex, UpdateCriteria, OldIndexDataFilter, ScalarIndexParams,
BuiltinIndexType, TrainingCriteria/TrainingOrdering, IndexFile.
lance-index and lance-table re-export all moved types for backward
compatibility. FragReuseIndex/MemWalIndex trait impls move to lance-table
where those types are defined.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent af8a90f commit d29d5d3
31 files changed
Lines changed: 1321 additions & 1201 deletions
File tree
- java/lance-jni
- python
- src
- rust
- lance-index-core
- src
- lance-index
- src
- scalar
- rtree/sort
- vector
- flat
- hnsw
- lance-table
- src
- format
- system_index
- lance/src/index/vector/ivf
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments