Commit 1ef6310
authored
refactor!: align distributed index build around segments (#6313)
This refactor removes the old `IndexSegment` / segment-builder workflow
from distributed vector indexing and aligns the public flow around
`IndexMetadata` returned from fragment-level builds. Worker builds now
produce uncommitted index metadata, callers optionally merge
caller-defined metadata groups, and the final metadata set is committed
as one logical index.
```python
# Build uncommitted index metadata
segment_0 = dataset.create_index_uncommitted(...)
segment_1 = dataset.create_index_uncommitted(...)
# Merge segments if needed
merged_segment = dataset.merge_existing_index_segments([
segment_0,
segment_1,
])
# Commit segments
dataset.commit_existing_index_segments("vector_idx", "vector", [merged_segment])
```1 parent 526a72f commit 1ef6310
21 files changed
Lines changed: 556 additions & 1180 deletions
File tree
- docs/src
- guide
- images
- java
- lance-jni/src
- src
- main/java/org/lance
- test/java/org/lance/index
- python
- python
- lance
- indices
- lance
- indices
- tests
- src
- rust/lance/src
- dataset
- index
- vector
- ivf
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
113 | 106 | | |
114 | 107 | | |
115 | 108 | | |
116 | | - | |
| 109 | + | |
117 | 110 | | |
118 | 111 | | |
119 | 112 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
123 | 116 | | |
124 | | - | |
125 | | - | |
126 | | - | |
| 117 | + | |
| 118 | + | |
127 | 119 | | |
128 | 120 | | |
129 | 121 | | |
| |||
133 | 125 | | |
134 | 126 | | |
135 | 127 | | |
136 | | - | |
| 128 | + | |
137 | 129 | | |
138 | | - | |
139 | | - | |
| 130 | + | |
| 131 | + | |
140 | 132 | | |
141 | 133 | | |
142 | 134 | | |
| |||
Loading
0 commit comments