pub struct BuildCheckpoint {
pub tier: TierKind,
pub embedder_id: String,
pub last_offset: i64,
pub docs_embedded: u64,
pub conversations_processed: u64,
pub total_conversations: u64,
pub db_fingerprint: String,
pub schema_version: u32,
pub chunking_version: u32,
pub saved_at_ms: i64,
pub last_message_id: Option<i64>,
}Expand description
Resumable position for an interrupted semantic build.
Sub-fix 2 for cass#257 added the optional last_message_id cursor.
Resume strictly advances past this cursor when present, so that a
rerun of an interrupted bounded backfill never re-embeds messages
that already made it into the staged index. Pre-#257 binaries wrote
checkpoints without the field (it deserializes to None via
#[serde(default)]), and modern binaries fall back to the
conversation offset when last_message_id is absent.
Fields§
§tier: TierKindWhich tier is being built.
embedder_id: StringEmbedder ID for this build.
last_offset: i64Last conversation offset processed (for pagination).
docs_embedded: u64Total documents embedded so far in this build.
conversations_processed: u64Total conversations processed so far.
total_conversations: u64Total conversations expected (from DB at start of build).
db_fingerprint: StringDB fingerprint when this build started.
schema_version: u32Schema version for this build.
chunking_version: u32Chunking version for this build.
saved_at_ms: i64Unix timestamp (ms) when this checkpoint was saved.
last_message_id: Option<i64>Highest canonical message PK embedded in this run so far.
Added in cass#257 (sub-fix 2). None for checkpoints written
by pre-#257 binaries; new code falls back to last_offset
(conversation-granularity) when this is absent. New code
strictly resumes past this cursor when present.
Implementations§
Source§impl BuildCheckpoint
impl BuildCheckpoint
Sourcepub fn progress_pct(&self) -> u8
pub fn progress_pct(&self) -> u8
Progress as a percentage (0–100).
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether the build is complete (all conversations processed).
Trait Implementations§
Source§impl Clone for BuildCheckpoint
impl Clone for BuildCheckpoint
Source§fn clone(&self) -> BuildCheckpoint
fn clone(&self) -> BuildCheckpoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildCheckpoint
impl Debug for BuildCheckpoint
Source§impl<'de> Deserialize<'de> for BuildCheckpoint
impl<'de> Deserialize<'de> for BuildCheckpoint
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>,
Source§impl PartialEq for BuildCheckpoint
impl PartialEq for BuildCheckpoint
Source§fn eq(&self, other: &BuildCheckpoint) -> bool
fn eq(&self, other: &BuildCheckpoint) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for BuildCheckpoint
impl Serialize for BuildCheckpoint
impl Eq for BuildCheckpoint
impl StructuralPartialEq for BuildCheckpoint
Auto Trait Implementations§
impl Freeze for BuildCheckpoint
impl RefUnwindSafe for BuildCheckpoint
impl Send for BuildCheckpoint
impl Sync for BuildCheckpoint
impl Unpin for BuildCheckpoint
impl UnsafeUnpin for BuildCheckpoint
impl UnwindSafe for BuildCheckpoint
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
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>
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>
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