pub enum DeltaOperation {
Show 16 variants
AddColumn {
fields: Vec<StructField>,
},
Create {
mode: SaveMode,
location: String,
protocol: Protocol,
metadata: Metadata,
},
Write {
mode: SaveMode,
partition_by: Option<Vec<String>>,
predicate: Option<String>,
},
Delete {
predicate: Option<String>,
},
Update {
predicate: Option<String>,
},
AddConstraint {
name: String,
expr: String,
},
AddFeature {
name: Vec<TableFeatures>,
},
DropConstraint {
name: String,
},
Merge {
predicate: Option<String>,
merge_predicate: Option<String>,
matched_predicates: Vec<MergePredicate>,
not_matched_predicates: Vec<MergePredicate>,
not_matched_by_source_predicates: Vec<MergePredicate>,
},
StreamingUpdate {
output_mode: OutputMode,
query_id: String,
epoch_id: i64,
},
SetTableProperties {
properties: HashMap<String, String>,
},
Optimize {
predicate: Option<String>,
target_size: i64,
},
FileSystemCheck {},
Restore {
version: Option<i64>,
datetime: Option<i64>,
},
VacuumStart {
retention_check_enabled: bool,
specified_retention_millis: Option<i64>,
default_retention_millis: i64,
},
VacuumEnd {
status: String,
},
}
Expand description
Operation performed when creating a new log entry with one or more actions.
This is a key element of the CommitInfo
action.
Variants§
AddColumn
Represents a Delta Add Column
operation.
Used to add new columns or field in a struct
Fields
fields: Vec<StructField>
Fields added to existing schema
Create
Represents a Delta Create
operation.
Would usually only create the table, if also data is written,
a Write
operations is more appropriate
Fields
Write
Represents a Delta Write
operation.
Write operations will typically only include Add
actions.
Fields
Delete
Delete data matching predicate from delta table
Update
Update data matching predicate from delta table
AddConstraint
Add constraints to a table
AddFeature
Add table features to a table
Fields
name: Vec<TableFeatures>
Name of the feature
DropConstraint
Drops constraints from a table
Merge
Merge data with a source data with the following predicate
Fields
matched_predicates: Vec<MergePredicate>
Match operations performed
not_matched_predicates: Vec<MergePredicate>
Not Match operations performed
not_matched_by_source_predicates: Vec<MergePredicate>
Not Match by Source operations performed
StreamingUpdate
Represents a Delta StreamingUpdate
operation.
Fields
output_mode: OutputMode
The output mode the streaming writer is using.
SetTableProperties
Set table properties operations
Optimize
Represents a Optimize
operation
Fields
FileSystemCheck
Represents a FileSystemCheck
operation
Restore
Represents a Restore
operation
VacuumStart
Represents the start of Vacuum
operation
Fields
VacuumEnd
Represents the end of Vacuum
operation
Implementations§
Source§impl DeltaOperation
impl DeltaOperation
Sourcepub fn operation_parameters(&self) -> DeltaResult<HashMap<String, Value>>
pub fn operation_parameters(&self) -> DeltaResult<HashMap<String, Value>>
Parameters configured for operation.
Sourcepub fn changes_data(&self) -> bool
pub fn changes_data(&self) -> bool
Denotes if the operation changes the data contained in the table
Sourcepub fn get_commit_info(&self) -> CommitInfo
pub fn get_commit_info(&self) -> CommitInfo
Retrieve basic commit information to be added to Delta commits
Sourcepub fn read_predicate(&self) -> Option<String>
pub fn read_predicate(&self) -> Option<String>
Get predicate expression applied when the operation reads data from the table.
Sourcepub fn read_whole_table(&self) -> bool
pub fn read_whole_table(&self) -> bool
Denotes if the operation reads the entire table
Trait Implementations§
Source§impl Clone for DeltaOperation
impl Clone for DeltaOperation
Source§fn clone(&self) -> DeltaOperation
fn clone(&self) -> DeltaOperation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeltaOperation
impl Debug for DeltaOperation
Source§impl<'de> Deserialize<'de> for DeltaOperation
impl<'de> Deserialize<'de> for DeltaOperation
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 DeltaOperation
impl RefUnwindSafe for DeltaOperation
impl Send for DeltaOperation
impl Sync for DeltaOperation
impl Unpin for DeltaOperation
impl UnwindSafe for DeltaOperation
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,
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