Struct iceberg_rust::spec::spec::view_metadata::VersionBuilder
source · pub struct VersionBuilder<T>where
T: Materialization,{ /* private fields */ }Expand description
Builder for Version.
Implementations§
source§impl<T> VersionBuilder<T>where
T: Materialization + Clone,
impl<T> VersionBuilder<T>where
T: Materialization + Clone,
sourcepub fn version_id(&mut self, value: i64) -> &mut VersionBuilder<T>
pub fn version_id(&mut self, value: i64) -> &mut VersionBuilder<T>
Monotonically increasing id indicating the version of the view. Starts with 1.
sourcepub fn schema_id(&mut self, value: i32) -> &mut VersionBuilder<T>
pub fn schema_id(&mut self, value: i32) -> &mut VersionBuilder<T>
ID of the schema for the view version
sourcepub fn timestamp_ms(&mut self, value: i64) -> &mut VersionBuilder<T>
pub fn timestamp_ms(&mut self, value: i64) -> &mut VersionBuilder<T>
Timestamp expressed in ms since epoch at which the version of the view was created.
sourcepub fn summary(&mut self, value: Summary) -> &mut VersionBuilder<T>
pub fn summary(&mut self, value: Summary) -> &mut VersionBuilder<T>
A string map summarizes the version changes, including operation, described in Summary.
sourcepub fn representations(
&mut self,
value: Vec<ViewRepresentation>,
) -> &mut VersionBuilder<T>
pub fn representations( &mut self, value: Vec<ViewRepresentation>, ) -> &mut VersionBuilder<T>
A list of “representations” as described in Representations.
sourcepub fn with_representation<VALUE>(
&mut self,
item: VALUE,
) -> &mut VersionBuilder<T>
pub fn with_representation<VALUE>( &mut self, item: VALUE, ) -> &mut VersionBuilder<T>
A list of “representations” as described in Representations.
sourcepub fn default_catalog(&mut self, value: String) -> &mut VersionBuilder<T>
pub fn default_catalog(&mut self, value: String) -> &mut VersionBuilder<T>
A string specifying the catalog to use when the table or view references in the view definition do not contain an explicit catalog.
sourcepub fn default_namespace(
&mut self,
value: Vec<String>,
) -> &mut VersionBuilder<T>
pub fn default_namespace( &mut self, value: Vec<String>, ) -> &mut VersionBuilder<T>
The namespace to use when the table or view references in the view definition do not contain an explicit namespace. Since the namespace may contain multiple parts, it is serialized as a list of strings.
sourcepub fn storage_table(&mut self, value: T) -> &mut VersionBuilder<T>
pub fn storage_table(&mut self, value: T) -> &mut VersionBuilder<T>
Full identifier record of the storage table
sourcepub fn lineage(&mut self, value: Option<Lineage>) -> &mut VersionBuilder<T>
pub fn lineage(&mut self, value: Option<Lineage>) -> &mut VersionBuilder<T>
Lineage as a list of Source table records
Trait Implementations§
source§impl<T> Clone for VersionBuilder<T>where
T: Clone + Materialization,
impl<T> Clone for VersionBuilder<T>where
T: Clone + Materialization,
source§fn clone(&self) -> VersionBuilder<T>
fn clone(&self) -> VersionBuilder<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl<T> Default for VersionBuilder<T>where
T: Materialization + Clone,
impl<T> Default for VersionBuilder<T>where
T: Materialization + Clone,
source§fn default() -> VersionBuilder<T>
fn default() -> VersionBuilder<T>
Auto Trait Implementations§
impl<T> Freeze for VersionBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for VersionBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for VersionBuilder<T>where
T: Send,
impl<T> Sync for VersionBuilder<T>where
T: Sync,
impl<T> Unpin for VersionBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for VersionBuilder<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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