pub struct IcebergMetadata {Show 19 fields
pub format_version: i32,
pub table_uuid: String,
pub location: String,
pub last_sequence_number: i64,
pub last_updated_ms: i64,
pub last_column_id: i32,
pub schemas: Vec<Value>,
pub current_schema_id: i32,
pub partition_specs: Vec<Value>,
pub default_spec_id: i32,
pub last_partition_id: i32,
pub properties: HashMap<String, String>,
pub current_snapshot_id: Option<SnapshotId>,
pub snapshots: Vec<IcebergSnapshot>,
pub snapshot_log: Vec<Value>,
pub metadata_log: Vec<Value>,
pub sort_orders: Vec<Value>,
pub default_sort_order_id: i32,
pub refs: HashMap<String, Value>,
}Fields§
§format_version: i32§table_uuid: String§location: String§last_sequence_number: i64§last_updated_ms: i64§last_column_id: i32§schemas: Vec<Value>§current_schema_id: i32§partition_specs: Vec<Value>§default_spec_id: i32§last_partition_id: i32§properties: HashMap<String, String>§current_snapshot_id: Option<SnapshotId>§snapshots: Vec<IcebergSnapshot>§snapshot_log: Vec<Value>§metadata_log: Vec<Value>§sort_orders: Vec<Value>§default_sort_order_id: i32§refs: HashMap<String, Value>Implementations§
Source§impl IcebergMetadata
impl IcebergMetadata
Sourcepub fn new(location: &str, policy: &VectorStoragePolicy) -> Self
pub fn new(location: &str, policy: &VectorStoragePolicy) -> Self
Create a new metadata.json for a fresh AI-Lake table.
pub fn to_json(&self) -> AilakeResult<String>
pub fn from_json(s: &str) -> AilakeResult<Self>
pub fn to_table_metadata(&self) -> TableMetadata
Trait Implementations§
Source§impl Debug for IcebergMetadata
impl Debug for IcebergMetadata
Source§impl<'de> Deserialize<'de> for IcebergMetadata
impl<'de> Deserialize<'de> for IcebergMetadata
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
Auto Trait Implementations§
impl Freeze for IcebergMetadata
impl RefUnwindSafe for IcebergMetadata
impl Send for IcebergMetadata
impl Sync for IcebergMetadata
impl Unpin for IcebergMetadata
impl UnsafeUnpin for IcebergMetadata
impl UnwindSafe for IcebergMetadata
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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 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>
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