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
34
35
36
37
38
39
40
41
42
// SPDX-License-Identifier: Apache-2.0
//! Shared runtime state for sparse-vector search on Lite.
//!
//! Held as `Arc<SparseVectorState>` on both `NodeDbLite` (user-facing write
//! path) and `LiteQueryEngine` (PhysicalPlan executor) so `VectorOp::Sparse*`
//! sees exactly the index the document writes maintain.
use Mutex;
use SparseVectorManager;
/// Arc-shareable wrapper around the per-collection sparse index manager.
///
/// The manager is purely in-memory and independent of the storage parameter
/// `S` — persistence happens through the checkpoint module at flush time — so
/// no generic parameter is needed here.