pub struct Remove {
pub path: String,
pub data_change: bool,
pub deletion_timestamp: Option<i64>,
pub extended_file_metadata: Option<bool>,
pub partition_values: Option<HashMap<String, Option<String>>>,
pub size: Option<i64>,
pub tags: Option<HashMap<String, Option<String>>>,
pub deletion_vector: Option<DeletionVectorDescriptor>,
pub base_row_id: Option<i64>,
pub default_row_commit_version: Option<i64>,
}
Expand description
Represents a tombstone (deleted file) in the Delta log.
Fields§
§path: String
A relative path to a data file from the root of the table or an absolute path to a file that should be added to the table. The path is a URI as specified by RFC 2396 URI Generic Syntax, which needs to be decoded to get the data file path.
data_change: bool
When false
the logical file must already be present in the table or the records
in the added file must be contained in one or more remove actions in the same version.
deletion_timestamp: Option<i64>
The time this logical file was created, as milliseconds since the epoch.
extended_file_metadata: Option<bool>
When true the fields partition_values
, size
, and tags
are present
partition_values: Option<HashMap<String, Option<String>>>
A map from partition column to value for this logical file.
size: Option<i64>
The size of this data file in bytes
Map containing metadata about this logical file.
deletion_vector: Option<DeletionVectorDescriptor>
Information about deletion vector (DV) associated with this add action
base_row_id: Option<i64>
Default generated Row ID of the first row in the file. The default generated Row IDs of the other rows in the file can be reconstructed by adding the physical index of the row within the file to the base Row ID
default_row_commit_version: Option<i64>
First commit version in which an add action with the same path was committed to the table.
Trait Implementations§
Source§impl Borrow<str> for Remove
impl Borrow<str> for Remove
Borrow Remove
as str so we can look at tombstones hashset in DeltaTableState
by using
a path from action Add
.
Source§impl<'de> Deserialize<'de> for Remove
impl<'de> Deserialize<'de> for Remove
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 FileAction for Remove
impl FileAction for Remove
impl Eq for Remove
Auto Trait Implementations§
impl Freeze for Remove
impl RefUnwindSafe for Remove
impl Send for Remove
impl Sync for Remove
impl Unpin for Remove
impl UnwindSafe for Remove
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<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
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