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,

Auto-generated by derive_getters::Getters.

source

pub fn version_id(&self) -> &i64

Monotonically increasing id indicating the version of the view. Starts with 1.

source

pub fn schema_id(&self) -> &i32

ID of the schema for the view version

source

pub fn timestamp_ms(&self) -> &i64

Timestamp expressed in ms since epoch at which the version of the view was created.

source

pub fn summary(&self) -> &Summary

A string map summarizes the version changes, including operation, described in Summary.

source

pub fn representations(&self) -> &Vec<ViewRepresentation>

A list of “representations” as described in Representations.

source

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.

source

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.

source

pub fn storage_table(&self) -> &T

Full identifier record of the storage table

source

pub fn lineage(&self) -> &Option<Lineage>

Lineage as a list of Source table records

source§

impl<T> Version<T>
where T: Materialization,

Trait Implementations§

source§

impl<T> Clone for Version<T>

source§

fn clone(&self) -> Version<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Version<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for Version<T>

source§

fn default() -> Version<T>

Returns the “default value” for a type. Read more
source§

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>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Display for Version<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> FromStr for Version<T>
where T: Materialization + for<'de> Deserialize<'de>,

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Version<T>, <Version<T> as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl<T> PartialEq for Version<T>

source§

fn eq(&self, other: &Version<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> Serialize for Version<T>

source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Eq for Version<T>
where T: Eq + Materialization,

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,