Enum iceberg_rust::model::table_metadata::TableMetadata
source · pub enum TableMetadata {
V2(TableMetadataV2),
V1(TableMetadataV1),
}
Expand description
Metadata of an iceberg table
Variants§
V2(TableMetadataV2)
Version 2 of the table metadata
V1(TableMetadataV1)
Version 1 of the table metadata
Implementations§
source§impl TableMetadata
impl TableMetadata
sourcepub fn current_schema(&self) -> &StructType
pub fn current_schema(&self) -> &StructType
Get current schema of the table
sourcepub fn default_spec(&self) -> &[PartitionField]
pub fn default_spec(&self) -> &[PartitionField]
Get the default partition spec for the table
sourcepub fn get_spec(&self, id: i32) -> Option<&[PartitionField]>
pub fn get_spec(&self, id: i32) -> Option<&[PartitionField]>
Get the partition spec with thte given spec_id for the table
sourcepub fn manifest_list(&self) -> Option<&str>
pub fn manifest_list(&self) -> Option<&str>
Get the manifest_list for the current snapshot of the table
sourcepub fn last_sequence_number(&self) -> i64
pub fn last_sequence_number(&self) -> i64
Get the last_sequence_number of the table
sourcepub fn last_updated_ms(&self) -> i64
pub fn last_updated_ms(&self) -> i64
Timestamp in milliseconds from the unix epoch when the table was last updated.
sourcepub fn format_version(&self) -> FormatVersion
pub fn format_version(&self) -> FormatVersion
Get the format version of the table
Trait Implementations§
source§impl Debug for TableMetadata
impl Debug for TableMetadata
source§impl<'de> Deserialize<'de> for TableMetadata
impl<'de> Deserialize<'de> for TableMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TableMetadata> for TableMetadata
impl PartialEq<TableMetadata> for TableMetadata
source§fn eq(&self, other: &TableMetadata) -> bool
fn eq(&self, other: &TableMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableMetadata
impl Serialize for TableMetadata
impl Eq for TableMetadata
impl StructuralEq for TableMetadata
impl StructuralPartialEq for TableMetadata
Auto Trait Implementations§
impl RefUnwindSafe for TableMetadata
impl Send for TableMetadata
impl Sync for TableMetadata
impl Unpin for TableMetadata
impl UnwindSafe for TableMetadata
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.