pub struct TableMetadataV2 {Show 19 fields
pub format_version: VersionNumber<2>,
pub table_uuid: Uuid,
pub location: String,
pub last_sequence_number: i64,
pub last_updated_ms: i64,
pub last_column_id: i32,
pub schemas: Vec<SchemaV2>,
pub current_schema_id: i32,
pub partition_specs: Vec<PartitionSpec>,
pub default_spec_id: i32,
pub last_partition_id: i32,
pub properties: HashMap<String, String>,
pub current_snapshot_id: Option<i64>,
pub snapshots: Option<Vec<SnapshotV2>>,
pub snapshot_log: Vec<SnapshotLog>,
pub metadata_log: Vec<MetadataLog>,
pub sort_orders: Vec<SortOrder>,
pub default_sort_order_id: i32,
pub refs: HashMap<String, SnapshotReference>,
}
Expand description
Fields for the version 2 of the table metadata.
Fields§
§format_version: VersionNumber<2>
Integer Version for the format.
table_uuid: Uuid
A UUID that identifies the table
location: String
Location tables base location
last_sequence_number: i64
The tables highest sequence number
last_updated_ms: i64
Timestamp in milliseconds from the unix epoch when the table was last updated.
last_column_id: i32
An integer; the highest assigned column ID for the table.
schemas: Vec<SchemaV2>
A list of schemas, stored as objects with schema-id.
current_schema_id: i32
ID of the table’s current schema.
partition_specs: Vec<PartitionSpec>
A list of partition specs, stored as full partition spec objects.
default_spec_id: i32
ID of the “current” spec that writers should use by default.
last_partition_id: i32
An integer; the highest assigned partition field ID across all partition specs for the table.
properties: HashMap<String, String>
A string to string map of table properties. This is used to control settings that affect reading and writing and is not intended to be used for arbitrary metadata. For example, commit.retry.num-retries is used to control the number of commit retries.
current_snapshot_id: Option<i64>
long ID of the current table snapshot; must be the same as the current ID of the main branch in refs.
snapshots: Option<Vec<SnapshotV2>>
A list of valid snapshots. Valid snapshots are snapshots for which all data files exist in the file system. A data file must not be deleted from the file system until the last snapshot in which it was listed is garbage collected.
snapshot_log: Vec<SnapshotLog>
A list (optional) of timestamp and snapshot ID pairs that encodes changes to the current snapshot for the table. Each time the current-snapshot-id is changed, a new entry should be added with the last-updated-ms and the new current-snapshot-id. When snapshots are expired from the list of valid snapshots, all entries before a snapshot that has expired should be removed.
metadata_log: Vec<MetadataLog>
A list (optional) of timestamp and metadata file location pairs that encodes changes to the previous metadata files for the table. Each time a new metadata file is created, a new entry of the previous metadata file location should be added to the list. Tables can be configured to remove oldest metadata log entries and keep a fixed-size log of the most recent entries after a commit.
sort_orders: Vec<SortOrder>
A list of sort orders, stored as full sort order objects.
default_sort_order_id: i32
Default sort order id of the table. Note that this could be used by writers, but is not used when reading because reads use the specs stored in manifest files.
refs: HashMap<String, SnapshotReference>
A map of snapshot references. The map keys are the unique snapshot reference names in the table, and the map values are snapshot reference objects. There is always a main branch reference pointing to the current-snapshot-id even if the refs map is null.
Trait Implementations§
Source§impl Debug for TableMetadataV2
impl Debug for TableMetadataV2
Source§impl<'de> Deserialize<'de> for TableMetadataV2
impl<'de> Deserialize<'de> for TableMetadataV2
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TableMetadataV2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TableMetadataV2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<TableMetadata> for TableMetadataV2
impl From<TableMetadata> for TableMetadataV2
Source§fn from(v: TableMetadata) -> TableMetadataV2
fn from(v: TableMetadata) -> TableMetadataV2
Source§impl PartialEq for TableMetadataV2
impl PartialEq for TableMetadataV2
Source§impl Serialize for TableMetadataV2
impl Serialize for TableMetadataV2
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 TryFrom<TableMetadataV2> for TableMetadata
impl TryFrom<TableMetadataV2> for TableMetadata
impl Eq for TableMetadataV2
impl StructuralPartialEq for TableMetadataV2
Auto Trait Implementations§
impl Freeze for TableMetadataV2
impl RefUnwindSafe for TableMetadataV2
impl Send for TableMetadataV2
impl Sync for TableMetadataV2
impl Unpin for TableMetadataV2
impl UnwindSafe for TableMetadataV2
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
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 more