struct TemporalSnapshot {
version: u32,
graph: HnswSnapshot,
timestamps: Vec<i64>,
entity_ids: Vec<u64>,
entity_index: BTreeMap<u64, Vec<(i64, u32)>>,
min_timestamp: i64,
max_timestamp: i64,
metadata_store: Option<MetadataStore>,
centroid: Option<Vec<f32>>,
rewards: Vec<f32>,
}Expand description
Serializable snapshot of a TemporalHnsw index.
Fields§
§version: u32Format version for forward compatibility (RFC-012 P5). v1: original (graph, timestamps, entity_ids, entity_index, min/max_timestamp) v2: + metadata_store, centroid, rewards
graph: HnswSnapshot§timestamps: Vec<i64>§entity_ids: Vec<u64>§entity_index: BTreeMap<u64, Vec<(i64, u32)>>§min_timestamp: i64§max_timestamp: i64§metadata_store: Option<MetadataStore>§centroid: Option<Vec<f32>>Centroid for anisotropy correction (RFC-012 Part B).
rewards: Vec<f32>Per-node reward for outcome-aware search (RFC-012 P4).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TemporalSnapshot
impl<'de> Deserialize<'de> for TemporalSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TemporalSnapshot
impl RefUnwindSafe for TemporalSnapshot
impl Send for TemporalSnapshot
impl Sync for TemporalSnapshot
impl Unpin for TemporalSnapshot
impl UnwindSafe for TemporalSnapshot
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more