pub struct FtsIndexEntry {
pub name: String,
pub column_name: String,
pub index: PostingList,
pub needs_rebuild: bool,
}Expand description
One FTS index attached to a table (Phase 8b). The inverted index
itself is a PostingList; metadata (name, column, dirty flag)
lives here. Mirrors HnswIndexEntry field-for-field so the
rebuild-on-save and DELETE/UPDATE invalidation paths can use one
pattern across both index families.
Fields§
§name: StringUser-supplied name from CREATE INDEX <name> … USING fts(<col>).
Unique across secondary_indexes, hnsw_indexes, and
fts_indexes on a given table.
column_name: StringThe TEXT column this index covers.
index: PostingListThe inverted index + per-doc length cache.
needs_rebuild: boolTrue iff a DELETE or UPDATE-on-text-col has invalidated the posting lists since the last rebuild. INSERT maintains the index incrementally and leaves this false. The next save rebuilds dirty indexes from current rows before serializing (mirrors HNSW’s Q7 strategy).
Trait Implementations§
Source§impl Clone for FtsIndexEntry
impl Clone for FtsIndexEntry
Source§fn clone(&self) -> FtsIndexEntry
fn clone(&self) -> FtsIndexEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more