pub struct RebuildInputs { /* private fields */ }Expand description
A captured, owned snapshot of everything an off-lock rebuild needs (ADR-0062):
the scanned rows, the collection’s descriptor, and the write generation at
capture time. Produced under the shared read lock by
Database::snapshot_rebuild_inputs; RebuildInputs::build then constructs
the new index with no lock held.
Implementations§
Source§impl RebuildInputs
impl RebuildInputs
Sourcepub fn build(self) -> Result<RebuiltIndex>
pub fn build(self) -> Result<RebuiltIndex>
Build the new index from the captured rows with no lock held — the
expensive CPU work (graph build, PQ training, HNSW insertion) of an off-lock
rebuild (ADR-0062). The disk artifact is built in memory here; its file is
sealed later by commit_rebuild under the write lock.
Auto Trait Implementations§
impl Freeze for RebuildInputs
impl RefUnwindSafe for RebuildInputs
impl Send for RebuildInputs
impl Sync for RebuildInputs
impl Unpin for RebuildInputs
impl UnsafeUnpin for RebuildInputs
impl UnwindSafe for RebuildInputs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more