pub struct DatasetVersionManager { /* private fields */ }Expand description
Dataset version manager for creating and managing snapshots
Implementations§
Source§impl DatasetVersionManager
impl DatasetVersionManager
Sourcepub fn create_snapshot<T>(
&mut self,
dataset: &dyn Dataset<T>,
description: String,
tags: Vec<String>,
parent_version: Option<VersionId>,
) -> Result<VersionId>
pub fn create_snapshot<T>( &mut self, dataset: &dyn Dataset<T>, description: String, tags: Vec<String>, parent_version: Option<VersionId>, ) -> Result<VersionId>
Create a snapshot of a dataset
Sourcepub fn load_snapshot<T>(&self, version_id: &str) -> Result<VersionedDataset<T>>
pub fn load_snapshot<T>(&self, version_id: &str) -> Result<VersionedDataset<T>>
Load a dataset snapshot by version ID
Sourcepub fn get_lineage(&self, version_id: &str) -> Option<&DatasetLineage>
pub fn get_lineage(&self, version_id: &str) -> Option<&DatasetLineage>
Get lineage information for a version
Sourcepub fn add_transformation(
&mut self,
version_id: &str,
transform_type: String,
parameters: HashMap<String, String>,
description: String,
) -> Result<()>
pub fn add_transformation( &mut self, version_id: &str, transform_type: String, parameters: HashMap<String, String>, description: String, ) -> Result<()>
Add transformation record to a version
Sourcepub fn list_versions(&self) -> Vec<&VersionMetadata>
pub fn list_versions(&self) -> Vec<&VersionMetadata>
List all versions
Sourcepub fn get_versions_by_tag(&self, tag: &str) -> Vec<&VersionMetadata>
pub fn get_versions_by_tag(&self, tag: &str) -> Vec<&VersionMetadata>
Get versions by tag
Sourcepub fn get_lineage_tree(&self, version_id: &str) -> Option<LineageTree>
pub fn get_lineage_tree(&self, version_id: &str) -> Option<LineageTree>
Get the lineage tree starting from a version
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DatasetVersionManager
impl RefUnwindSafe for DatasetVersionManager
impl Send for DatasetVersionManager
impl Sync for DatasetVersionManager
impl Unpin for DatasetVersionManager
impl UnsafeUnpin for DatasetVersionManager
impl UnwindSafe for DatasetVersionManager
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> 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 more