Enum iceberg_rust::catalog::commit::TableRequirement
source · pub enum TableRequirement {
AssertCreate,
AssertTableUuid {
uuid: Uuid,
},
AssertRefSnapshotId {
ref: String,
snapshot_id: i64,
},
AssertLastAssignedFieldId {
last_assigned_field_id: i32,
},
AssertCurrentSchemaId {
current_schema_id: i32,
},
AssertLastAssignedPartitionId {
last_assigned_partition_id: i32,
},
AssertDefaultSpecId {
default_spec_id: i32,
},
AssertDefaultSortOrderId {
default_sort_order_id: i32,
},
}
Expand description
Requirements on the table metadata to perform the updates
Variants§
AssertCreate
The table must not already exist; used for create transactions
AssertTableUuid
The table UUID must match the requirement’s uuid
AssertRefSnapshotId
The table branch or tag identified by the requirement’s ref
must reference the requirement’s snapshot-id
;
if snapshot-id
is null
or missing, the ref must not already exist
AssertLastAssignedFieldId
The table’s last assigned column id must match the requirement’s last-assigned-field-id
AssertCurrentSchemaId
The table’s current schema id must match the requirement’s current-schema-id
AssertLastAssignedPartitionId
The table’s last assigned partition id must match the requirement’s last-assigned-partition-id
AssertDefaultSpecId
The table’s default spec id must match the requirement’s default-spec-id
AssertDefaultSortOrderId
The table’s default sort order id must match the requirement’s default-sort-order-id
Trait Implementations§
source§impl Debug for TableRequirement
impl Debug for TableRequirement
source§impl<'de> Deserialize<'de> for TableRequirement
impl<'de> Deserialize<'de> for TableRequirement
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>,
Auto Trait Implementations§
impl Freeze for TableRequirement
impl RefUnwindSafe for TableRequirement
impl Send for TableRequirement
impl Sync for TableRequirement
impl Unpin for TableRequirement
impl UnwindSafe for TableRequirement
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> 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