pub enum CheckpointDependencies {
V2 {
batches: Vec<String>,
state_files: Vec<String>,
},
V1(Vec<String>),
}Expand description
Serialized form of dependencies.json on disk.
Two formats. New checkpoints write the struct form (V2) carrying both
the batch list referenced at the storage root and the list of per-operator
state files inside the checkpoint dir. Old checkpoints stored only the
batch-filename array (V1); they remain readable so a rolling upgrade
across in-flight checkpoints is safe.
Variants§
V2
Fields
V1(Vec<String>)
Legacy form: JSON array of batch filenames at the storage root
(w*.feldera). No state-file manifest.
Implementations§
Source§impl CheckpointDependencies
impl CheckpointDependencies
Sourcepub fn batches(&self) -> &[String]
pub fn batches(&self) -> &[String]
Batch files the checkpoint references at the storage root
(w*.feldera). Present in both V1 and V2 checkpoints.
Sourcepub fn state_files(&self) -> &[String]
pub fn state_files(&self) -> &[String]
Per-operator state files the checkpoint owned at commit time. These
live inside the checkpoint dir (e.g. pspine-*.dat, z1-*.dat).
Empty for V1 checkpoints, which predate the state-file manifest.
Trait Implementations§
Source§impl Debug for CheckpointDependencies
impl Debug for CheckpointDependencies
Source§impl<'de> Deserialize<'de> for CheckpointDependencies
impl<'de> Deserialize<'de> for CheckpointDependencies
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>,
Auto Trait Implementations§
impl Forget for CheckpointDependencies
impl Freeze for CheckpointDependencies
impl Move for CheckpointDependencies
impl RefUnwindSafe for CheckpointDependencies
impl Send for CheckpointDependencies
impl Sync for CheckpointDependencies
impl Unpin for CheckpointDependencies
impl UnsafeUnpin for CheckpointDependencies
impl UnwindSafe for CheckpointDependencies
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> 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