pub enum GrepIndexLifecycle {
Disabled,
Backfilling {
target_seq: ChangeSeq,
cursor_inode_id: Option<InodeId>,
checkpoint_id: CheckpointId,
},
Active {
built_through_seq: ChangeSeq,
next_event_index: u32,
},
}Expand description
The grep index lifecycle for a namespace.
A namespace is searchable only when the lifecycle is Active.
Variants§
Disabled
No index is maintained for this namespace.
Backfilling
An initial scan of a pinned checkpoint that is not yet searchable.
Fields
§
cursor_inode_id: Option<InodeId>The inode after which the scan resumes, or None before the first page.
§
checkpoint_id: CheckpointIdCheckpoint pinning the state being walked.
Active
An index following the change feed through its searchable watermark.
Implementations§
Source§impl GrepIndexLifecycle
impl GrepIndexLifecycle
Sourcepub fn is_built_through(&self, target_seq: ChangeSeq) -> bool
pub fn is_built_through(&self, target_seq: ChangeSeq) -> bool
Whether every commit at or below target_seq is represented.
A watermark inside a commit (next_event_index above zero) has that
commit only partly indexed, so it counts as reached only for earlier
sequences.
Trait Implementations§
Source§impl Clone for GrepIndexLifecycle
impl Clone for GrepIndexLifecycle
Source§impl Debug for GrepIndexLifecycle
impl Debug for GrepIndexLifecycle
Source§impl<'de> Deserialize<'de> for GrepIndexLifecycle
impl<'de> Deserialize<'de> for GrepIndexLifecycle
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
impl Eq for GrepIndexLifecycle
Source§impl PartialEq for GrepIndexLifecycle
impl PartialEq for GrepIndexLifecycle
Source§impl Serialize for GrepIndexLifecycle
impl Serialize for GrepIndexLifecycle
impl StructuralPartialEq for GrepIndexLifecycle
Auto Trait Implementations§
impl Freeze for GrepIndexLifecycle
impl RefUnwindSafe for GrepIndexLifecycle
impl Send for GrepIndexLifecycle
impl Sync for GrepIndexLifecycle
impl Unpin for GrepIndexLifecycle
impl UnsafeUnpin for GrepIndexLifecycle
impl UnwindSafe for GrepIndexLifecycle
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