pub struct IndexDetailSpec {
pub kind: IndexKindSpec,
pub relationship: bool,
pub labels: Vec<String>,
pub properties: Vec<String>,
pub with_properties: Vec<String>,
}Expand description
Typed payload of RedoOp::CatalogIndexDetail: the catalog facts of
a CREATE INDEX, captured once at DDL-execution time from the parsed
clause. apply_redo stores it verbatim – it never formats a CREATE
INDEX string and re-parses it.
Fields§
§kind: IndexKindSpec§relationship: boolTrue for a relationship (FOR ()-[r:T]-()) index.
labels: Vec<String>Node labels, or (for a relationship index) relationship types;
more than one entry only for the A|B disjunctive form, empty for
a LOOKUP index.
properties: Vec<String>§with_properties: Vec<String>WITH [...] single-stage-filtering properties (VECTOR).
Implementations§
Source§impl IndexDetailSpec
impl IndexDetailSpec
Sourcepub fn entity_kind(&self) -> EntityKind
pub fn entity_kind(&self) -> EntityKind
The entity kind this index covers — the one derivation of the
relationship flag, consulted by every scan, filter preparation,
and procedure classification that needs it; no caller re-spells
the flag’s decoding beside it.
Sourcepub fn covered_pairs(&self) -> Vec<(&str, &str, IndexKindSpec)>
pub fn covered_pairs(&self) -> Vec<(&str, &str, IndexKindSpec)>
Node (label, property) pairs this detail materializes and charges.
Relationship indexes, multi-label indexes, and kinds other than
single-property TEXT or POINT, or RANGE, contribute nothing.
Sourcepub fn range_seek_pairs(&self) -> Vec<(&str, &str)>
pub fn range_seek_pairs(&self) -> Vec<(&str, &str)>
The node (label, property) pairs this index serves an equality seek
on. Derived from Self::covered_pairs so the entity, label-count
and kind gates live once: only a single-label node RANGE index
contributes, and it contributes every covered property — the
executor materializes and seeks each component of a composite index,
so leading-only coverage would under-report it. A relationship index
never yields a node pair, and a property name is never split on a
comma.