pub struct GeneralViewMetadata<T>where
T: Materialization,{
pub view_uuid: Uuid,
pub format_version: FormatVersion,
pub location: String,
pub current_version_id: i64,
pub versions: HashMap<i64, Version<T>>,
pub version_log: Vec<VersionLogStruct>,
pub schemas: HashMap<i32, Schema>,
pub properties: HashMap<String, String>,
}Expand description
Fields for the version 1 of the view metadata.
Fields§
§view_uuid: UuidA 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: FormatVersionAn integer version number for the view format; must be 1
location: StringThe view’s base location. This is used to determine where to store manifest files and view metadata files.
current_version_id: i64Current version of the view. Set to ‘1’ when the view is first created.
versions: HashMap<i64, 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: HashMap<i32, Schema>A list of schemas, the same as the ‘schemas’ field from Iceberg table spec.
properties: 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.
Implementations§
Source§impl GeneralViewMetadata<Identifier>
impl GeneralViewMetadata<Identifier>
pub fn as_ref(&self) -> TabularMetadataRef<'_>
Source§impl<T> GeneralViewMetadata<T>where
T: Materialization,
impl<T> GeneralViewMetadata<T>where
T: Materialization,
Source§impl GeneralViewMetadata<Option<()>>
impl GeneralViewMetadata<Option<()>>
pub fn as_ref(&self) -> TabularMetadataRef<'_>
Trait Implementations§
Source§impl<T> Clone for GeneralViewMetadata<T>where
T: Clone + Materialization,
impl<T> Clone for GeneralViewMetadata<T>where
T: Clone + Materialization,
Source§fn clone(&self) -> GeneralViewMetadata<T>
fn clone(&self) -> GeneralViewMetadata<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<T> Debug for GeneralViewMetadata<T>where
T: Debug + Materialization,
impl<T> Debug for GeneralViewMetadata<T>where
T: Debug + Materialization,
Source§impl<T> Default for GeneralViewMetadata<T>where
T: Default + Materialization,
impl<T> Default for GeneralViewMetadata<T>where
T: Default + Materialization,
Source§fn default() -> GeneralViewMetadata<T>
fn default() -> GeneralViewMetadata<T>
Source§impl<'de, T> Deserialize<'de> for GeneralViewMetadata<T>where
T: Materialization + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for GeneralViewMetadata<T>where
T: Materialization + Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GeneralViewMetadata<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GeneralViewMetadata<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl<'a> From<&'a GeneralViewMetadata<Identifier>> for TabularMetadataRef<'a>
impl<'a> From<&'a GeneralViewMetadata<Identifier>> for TabularMetadataRef<'a>
Source§fn from(value: &'a GeneralViewMetadata<Identifier>) -> TabularMetadataRef<'a>
fn from(value: &'a GeneralViewMetadata<Identifier>) -> TabularMetadataRef<'a>
Source§impl<'a> From<&'a GeneralViewMetadata<Option<()>>> for TabularMetadataRef<'a>
impl<'a> From<&'a GeneralViewMetadata<Option<()>>> for TabularMetadataRef<'a>
Source§fn from(value: &'a GeneralViewMetadata<Option<()>>) -> TabularMetadataRef<'a>
fn from(value: &'a GeneralViewMetadata<Option<()>>) -> TabularMetadataRef<'a>
Source§impl From<GeneralViewMetadata<Identifier>> for TabularMetadata
impl From<GeneralViewMetadata<Identifier>> for TabularMetadata
Source§fn from(value: GeneralViewMetadata<Identifier>) -> TabularMetadata
fn from(value: GeneralViewMetadata<Identifier>) -> TabularMetadata
Source§impl From<GeneralViewMetadata<Option<()>>> for TabularMetadata
impl From<GeneralViewMetadata<Option<()>>> for TabularMetadata
Source§fn from(value: GeneralViewMetadata<Option<()>>) -> TabularMetadata
fn from(value: GeneralViewMetadata<Option<()>>) -> TabularMetadata
Source§impl<T> From<GeneralViewMetadata<T>> for ViewMetadataV1<T>where
T: Materialization,
impl<T> From<GeneralViewMetadata<T>> for ViewMetadataV1<T>where
T: Materialization,
Source§fn from(value: GeneralViewMetadata<T>) -> ViewMetadataV1<T>
fn from(value: GeneralViewMetadata<T>) -> ViewMetadataV1<T>
Source§impl<T> PartialEq for GeneralViewMetadata<T>where
T: PartialEq + Materialization,
impl<T> PartialEq for GeneralViewMetadata<T>where
T: PartialEq + Materialization,
Source§impl<T> Serialize for GeneralViewMetadata<T>where
T: Materialization + Serialize,
impl<T> Serialize for GeneralViewMetadata<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,
Source§impl<T> TryFrom<ViewMetadataEnum<T>> for GeneralViewMetadata<T>where
T: Materialization,
impl<T> TryFrom<ViewMetadataEnum<T>> for GeneralViewMetadata<T>where
T: Materialization,
Source§impl<T> TryFrom<ViewMetadataV1<T>> for GeneralViewMetadata<T>where
T: Materialization,
impl<T> TryFrom<ViewMetadataV1<T>> for GeneralViewMetadata<T>where
T: Materialization,
Source§fn try_from(
value: ViewMetadataV1<T>,
) -> Result<GeneralViewMetadata<T>, <GeneralViewMetadata<T> as TryFrom<ViewMetadataV1<T>>>::Error>
fn try_from( value: ViewMetadataV1<T>, ) -> Result<GeneralViewMetadata<T>, <GeneralViewMetadata<T> as TryFrom<ViewMetadataV1<T>>>::Error>
Source§impl TryInto<GeneralViewMetadata<Identifier>> for CreateView<Identifier>
impl TryInto<GeneralViewMetadata<Identifier>> for CreateView<Identifier>
Source§impl TryInto<GeneralViewMetadata<Option<()>>> for CreateView<Option<()>>
impl TryInto<GeneralViewMetadata<Option<()>>> for CreateView<Option<()>>
impl<T> Eq for GeneralViewMetadata<T>where
T: Eq + Materialization,
impl<T> StructuralPartialEq for GeneralViewMetadata<T>where
T: Materialization,
Auto Trait Implementations§
impl<T> Freeze for GeneralViewMetadata<T>
impl<T> RefUnwindSafe for GeneralViewMetadata<T>where
T: RefUnwindSafe,
impl<T> Send for GeneralViewMetadata<T>where
T: Send,
impl<T> Sync for GeneralViewMetadata<T>where
T: Sync,
impl<T> Unpin for GeneralViewMetadata<T>where
T: Unpin,
impl<T> UnsafeUnpin for GeneralViewMetadata<T>
impl<T> UnwindSafe for GeneralViewMetadata<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§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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.