Struct iceberg_rust_spec::spec::view_metadata::ViewMetadataV1

source ·
pub struct ViewMetadataV1<T: Materialization> {
    pub view_uuid: Uuid,
    pub format_version: VersionNumber<1>,
    pub location: String,
    pub current_version_id: i64,
    pub versions: Vec<Version<T>>,
    pub version_log: Vec<VersionLogStruct>,
    pub schemas: Vec<SchemaV2>,
    pub properties: Option<HashMap<String, String>>,
}
Expand description

Fields for the version 1 of the view metadata.

Fields§

§view_uuid: Uuid

A UUID that identifies the view, generated when the view is created. Implementations must throw an exception if a view’s UUID does not match the expected UUID after refreshing metadata

§format_version: VersionNumber<1>

An integer version number for the view format; must be 1

§location: String

The view’s base location. This is used to determine where to store manifest files and view metadata files.

§current_version_id: i64

Current version of the view. Set to ‘1’ when the view is first created.

§versions: Vec<Version<T>>

An array of structs describing the last known versions of the view. Controlled by the table property: “version.history.num-entries”. See section Versions.

§version_log: Vec<VersionLogStruct>

A list of timestamp and version ID pairs that encodes changes to the current version for the view. Each time the current-version-id is changed, a new entry should be added with the last-updated-ms and the new current-version-id.

§schemas: Vec<SchemaV2>

A list of schemas, the same as the ‘schemas’ field from Iceberg table spec.

§properties: Option<HashMap<String, String>>

A string to string map of view properties. This is used for metadata such as “comment” and for settings that affect view maintenance. This is not intended to be used for arbitrary metadata.

Trait Implementations§

source§

impl<T: Debug + Materialization> Debug for ViewMetadataV1<T>

source§

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

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

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

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

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

impl<T: Materialization> From<GeneralViewMetadata<T>> for ViewMetadataV1<T>

source§

fn from(value: GeneralViewMetadata<T>) -> Self

Converts to this type from the input type.
source§

impl<T: PartialEq + Materialization> PartialEq for ViewMetadataV1<T>

source§

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

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

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

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

impl<T> Serialize for ViewMetadataV1<T>

source§

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

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

impl<T: Materialization> TryFrom<ViewMetadataV1<T>> for GeneralViewMetadata<T>

§

type Error = Error

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

fn try_from(value: ViewMetadataV1<T>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T: Eq + Materialization> Eq for ViewMetadataV1<T>

source§

impl<T: Materialization> StructuralPartialEq for ViewMetadataV1<T>

Auto Trait Implementations§

§

impl<T> Freeze for ViewMetadataV1<T>

§

impl<T> RefUnwindSafe for ViewMetadataV1<T>
where T: RefUnwindSafe,

§

impl<T> Send for ViewMetadataV1<T>
where T: Send,

§

impl<T> Sync for ViewMetadataV1<T>
where T: Sync,

§

impl<T> Unpin for ViewMetadataV1<T>
where T: Unpin,

§

impl<T> UnwindSafe for ViewMetadataV1<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<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, 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,