pub struct FileSystemCheckpointStore { /* private fields */ }Expand description
Filesystem-backed checkpoint store.
Writes checkpoint manifests as JSON files with atomic rename semantics.
A latest.txt pointer (not a symlink) tracks the most recent checkpoint
for Windows compatibility.
Implementations§
Trait Implementations§
Source§impl CheckpointStore for FileSystemCheckpointStore
impl CheckpointStore for FileSystemCheckpointStore
Source§fn save(
&self,
manifest: &CheckpointManifest,
) -> Result<(), CheckpointStoreError>
fn save( &self, manifest: &CheckpointManifest, ) -> Result<(), CheckpointStoreError>
Persists a checkpoint manifest atomically. Read more
Source§fn load_latest(
&self,
) -> Result<Option<CheckpointManifest>, CheckpointStoreError>
fn load_latest( &self, ) -> Result<Option<CheckpointManifest>, CheckpointStoreError>
Loads the most recent checkpoint manifest. Read more
Source§fn load_by_id(
&self,
id: u64,
) -> Result<Option<CheckpointManifest>, CheckpointStoreError>
fn load_by_id( &self, id: u64, ) -> Result<Option<CheckpointManifest>, CheckpointStoreError>
Loads a specific checkpoint manifest by ID. Read more
Source§fn list_ids(&self) -> Result<Vec<u64>, CheckpointStoreError>
fn list_ids(&self) -> Result<Vec<u64>, CheckpointStoreError>
Lists all checkpoint IDs without loading manifests. Read more
Source§fn list(&self) -> Result<Vec<(u64, u64)>, CheckpointStoreError>
fn list(&self) -> Result<Vec<(u64, u64)>, CheckpointStoreError>
Lists all available checkpoints as
(checkpoint_id, epoch) pairs. Read moreSource§fn prune(&self, keep_count: usize) -> Result<usize, CheckpointStoreError>
fn prune(&self, keep_count: usize) -> Result<usize, CheckpointStoreError>
Prunes old checkpoints, keeping at most
keep_count recent ones. Read moreSource§fn save_state_data(
&self,
id: u64,
data: &[u8],
) -> Result<(), CheckpointStoreError>
fn save_state_data( &self, id: u64, data: &[u8], ) -> Result<(), CheckpointStoreError>
Writes large operator state data to a sidecar file for a given checkpoint. Read more
Source§fn save_with_state(
&self,
manifest: &CheckpointManifest,
state_data: Option<&[u8]>,
) -> Result<(), CheckpointStoreError>
fn save_with_state( &self, manifest: &CheckpointManifest, state_data: Option<&[u8]>, ) -> Result<(), CheckpointStoreError>
Atomically saves a checkpoint manifest with optional sidecar state data. Read more
Source§fn cleanup_orphans(&self) -> Result<usize, CheckpointStoreError>
fn cleanup_orphans(&self) -> Result<usize, CheckpointStoreError>
Delete orphaned state files that have no matching manifest. Read more
Source§fn load_state_data(
&self,
id: u64,
) -> Result<Option<Vec<u8>>, CheckpointStoreError>
fn load_state_data( &self, id: u64, ) -> Result<Option<Vec<u8>>, CheckpointStoreError>
Loads large operator state data from a sidecar file. Read more
Source§fn update_manifest(
&self,
manifest: &CheckpointManifest,
) -> Result<(), CheckpointStoreError>
fn update_manifest( &self, manifest: &CheckpointManifest, ) -> Result<(), CheckpointStoreError>
Overwrites an existing checkpoint manifest. Read more
Source§fn validate_checkpoint(
&self,
id: u64,
) -> Result<ValidationResult, CheckpointStoreError>
fn validate_checkpoint( &self, id: u64, ) -> Result<ValidationResult, CheckpointStoreError>
Validate a specific checkpoint’s integrity. Read more
Source§fn recover_latest_validated(
&self,
) -> Result<RecoveryReport, CheckpointStoreError>
fn recover_latest_validated( &self, ) -> Result<RecoveryReport, CheckpointStoreError>
Walk backward from latest to find the first valid checkpoint. Read more
Auto Trait Implementations§
impl Freeze for FileSystemCheckpointStore
impl RefUnwindSafe for FileSystemCheckpointStore
impl Send for FileSystemCheckpointStore
impl Sync for FileSystemCheckpointStore
impl Unpin for FileSystemCheckpointStore
impl UnsafeUnpin for FileSystemCheckpointStore
impl UnwindSafe for FileSystemCheckpointStore
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> 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>
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.