Struct iceberg_rust_spec::spec::view_metadata::GeneralViewMetadata
source · pub struct GeneralViewMetadata<T: Representation> {
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<T: Representation> GeneralViewMetadata<T>
impl<T: Representation> GeneralViewMetadata<T>
Trait Implementations§
source§impl<T: Clone + Representation> Clone for GeneralViewMetadata<T>
impl<T: Clone + Representation> Clone for GeneralViewMetadata<T>
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 + Representation> Debug for GeneralViewMetadata<T>
impl<T: Debug + Representation> Debug for GeneralViewMetadata<T>
source§impl<T: Default + Representation> Default for GeneralViewMetadata<T>
impl<T: Default + Representation> Default for GeneralViewMetadata<T>
source§fn default() -> GeneralViewMetadata<T>
fn default() -> GeneralViewMetadata<T>
source§impl<'de, T> Deserialize<'de> for GeneralViewMetadata<T>where
T: Deserialize<'de> + Representation,
impl<'de, T> Deserialize<'de> for GeneralViewMetadata<T>where
T: Deserialize<'de> + Representation,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl<T: PartialEq + Representation> PartialEq for GeneralViewMetadata<T>
impl<T: PartialEq + Representation> PartialEq for GeneralViewMetadata<T>
source§fn eq(&self, other: &GeneralViewMetadata<T>) -> bool
fn eq(&self, other: &GeneralViewMetadata<T>) -> bool
self and other values to be equal, and is used
by ==.source§impl<T> Serialize for GeneralViewMetadata<T>where
T: Serialize + Representation,
impl<T> Serialize for GeneralViewMetadata<T>where
T: Serialize + Representation,
impl<T: Eq + Representation> Eq for GeneralViewMetadata<T>
impl<T: Representation> StructuralEq for GeneralViewMetadata<T>
impl<T: Representation> StructuralPartialEq for GeneralViewMetadata<T>
Auto Trait Implementations§
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> 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.