Struct iceberg_rust::spec::spec::view_metadata::Version
source · pub struct Version<T>where
T: Materialization,{
pub version_id: i64,
pub schema_id: i32,
pub timestamp_ms: i64,
pub summary: Summary,
pub representations: Vec<ViewRepresentation>,
pub default_catalog: Option<String>,
pub default_namespace: Option<Vec<String>>,
pub storage_table: T,
pub lineage: Option<Lineage>,
}
Expand description
Fields for the version 2 of the view metadata.
Fields§
§version_id: i64
Monotonically increasing id indicating the version of the view. Starts with 1.
schema_id: i32
ID of the schema for the view version
timestamp_ms: i64
Timestamp expressed in ms since epoch at which the version of the view was created.
summary: Summary
A string map summarizes the version changes, including operation, described in Summary.
representations: Vec<ViewRepresentation>
A list of “representations” as described in Representations.
default_catalog: Option<String>
A string specifying the catalog to use when the table or view references in the view definition do not contain an explicit catalog.
default_namespace: Option<Vec<String>>
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.
storage_table: T
Full identifier record of the storage table
lineage: Option<Lineage>
Lineage as a list of Source table records
Implementations§
source§impl<T> Version<T>where
T: Materialization,
impl<T> Version<T>where
T: Materialization,
Auto-generated by derive_getters::Getters
.
sourcepub fn version_id(&self) -> &i64
pub fn version_id(&self) -> &i64
Monotonically increasing id indicating the version of the view. Starts with 1.
sourcepub fn timestamp_ms(&self) -> &i64
pub fn timestamp_ms(&self) -> &i64
Timestamp expressed in ms since epoch at which the version of the view was created.
sourcepub fn summary(&self) -> &Summary
pub fn summary(&self) -> &Summary
A string map summarizes the version changes, including operation, described in Summary.
sourcepub fn representations(&self) -> &Vec<ViewRepresentation>
pub fn representations(&self) -> &Vec<ViewRepresentation>
A list of “representations” as described in Representations.
sourcepub fn default_catalog(&self) -> &Option<String>
pub fn default_catalog(&self) -> &Option<String>
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(&self) -> &Option<Vec<String>>
pub fn default_namespace(&self) -> &Option<Vec<String>>
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(&self) -> &T
pub fn storage_table(&self) -> &T
Full identifier record of the storage table
source§impl<T> Version<T>where
T: Materialization,
impl<T> Version<T>where
T: Materialization,
pub fn builder() -> VersionBuilder<T>
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Version<T>where
T: Materialization + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Version<T>where
T: Materialization + Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Version<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Version<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl<T> FromStr for Version<T>where
T: Materialization + for<'de> Deserialize<'de>,
impl<T> FromStr for Version<T>where
T: Materialization + for<'de> Deserialize<'de>,
source§impl<T> Serialize for Version<T>where
T: Materialization + Serialize,
impl<T> Serialize for Version<T>where
T: Materialization + Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl<T> Eq for Version<T>where
T: Eq + Materialization,
impl<T> StructuralPartialEq for Version<T>where
T: Materialization,
Auto Trait Implementations§
impl<T> Freeze for Version<T>where
T: Freeze,
impl<T> RefUnwindSafe for Version<T>where
T: RefUnwindSafe,
impl<T> Send for Version<T>where
T: Send,
impl<T> Sync for Version<T>where
T: Sync,
impl<T> Unpin for Version<T>where
T: Unpin,
impl<T> UnwindSafe for Version<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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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