pub enum TableUpdate {
Show 21 variants
UpgradeFormatVersion {
format_version: FormatVersion,
},
AssignUuid {
uuid: Uuid,
},
AddSchema {
schema: Schema,
},
SetCurrentSchema {
schema_id: i32,
},
AddSpec {
spec: UnboundPartitionSpec,
},
SetDefaultSpec {
spec_id: i32,
},
AddSortOrder {
sort_order: SortOrder,
},
SetDefaultSortOrder {
sort_order_id: i64,
},
AddSnapshot {
snapshot: Snapshot,
},
SetSnapshotRef {
ref_name: String,
reference: SnapshotReference,
},
RemoveSnapshots {
snapshot_ids: Vec<i64>,
},
RemoveSnapshotRef {
ref_name: String,
},
SetLocation {
location: String,
},
SetProperties {
updates: HashMap<String, String>,
},
RemoveProperties {
removals: Vec<String>,
},
RemovePartitionSpecs {
spec_ids: Vec<i32>,
},
SetStatistics {
statistics: StatisticsFile,
},
RemoveStatistics {
snapshot_id: i64,
},
SetPartitionStatistics {
partition_statistics: PartitionStatisticsFile,
},
RemovePartitionStatistics {
snapshot_id: i64,
},
RemoveSchemas {
schema_ids: Vec<i32>,
},
}
Expand description
TableUpdate represents an update to a table in the catalog.
Variants§
UpgradeFormatVersion
Upgrade table’s format version
Fields
format_version: FormatVersion
Target format upgrade to.
AssignUuid
Assign a new UUID to the table
AddSchema
Add a new schema to the table
SetCurrentSchema
Set table’s current schema
AddSpec
Add a new partition spec to the table
Fields
spec: UnboundPartitionSpec
The partition spec to add.
SetDefaultSpec
Set table’s default spec
AddSortOrder
Add sort order to table.
SetDefaultSortOrder
Set table’s default sort order
AddSnapshot
Add snapshot to table.
SetSnapshotRef
Set table’s snapshot ref.
Fields
reference: SnapshotReference
Snapshot reference to set.
RemoveSnapshots
Remove table’s snapshots
RemoveSnapshotRef
Remove snapshot reference
SetLocation
Update table’s location
SetProperties
Update table’s properties
RemoveProperties
Remove table’s properties
RemovePartitionSpecs
Remove partition specs
SetStatistics
Set statistics for a snapshot
Fields
statistics: StatisticsFile
File containing the statistics
RemoveStatistics
Remove statistics for a snapshot
SetPartitionStatistics
Set partition statistics for a snapshot
Fields
partition_statistics: PartitionStatisticsFile
File containing the partition statistics
RemovePartitionStatistics
Remove partition statistics for a snapshot
RemoveSchemas
Remove schemas
Implementations§
Source§impl TableUpdate
impl TableUpdate
Sourcepub fn apply(
self,
builder: TableMetadataBuilder,
) -> Result<TableMetadataBuilder>
pub fn apply( self, builder: TableMetadataBuilder, ) -> Result<TableMetadataBuilder>
Applies the update to the table metadata builder.
Trait Implementations§
Source§impl Clone for TableUpdate
impl Clone for TableUpdate
Source§fn clone(&self) -> TableUpdate
fn clone(&self) -> TableUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TableUpdate
impl Debug for TableUpdate
Source§impl<'de> Deserialize<'de> for TableUpdate
impl<'de> Deserialize<'de> for TableUpdate
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 PartialEq for TableUpdate
impl PartialEq for TableUpdate
Source§impl Serialize for TableUpdate
impl Serialize for TableUpdate
impl StructuralPartialEq for TableUpdate
Auto Trait Implementations§
impl !Freeze for TableUpdate
impl RefUnwindSafe for TableUpdate
impl Send for TableUpdate
impl Sync for TableUpdate
impl Unpin for TableUpdate
impl UnwindSafe for TableUpdate
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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