pub struct DeletionVectorDescriptor {
pub storage_type: StorageType,
pub path_or_inline_dv: String,
pub offset: Option<i32>,
pub size_in_bytes: i32,
pub cardinality: i64,
}
Expand description
Defines a deletion vector
Fields§
§storage_type: StorageType
A single character to indicate how to access the DV. Legal options are: [‘u’, ‘i’, ‘p’].
path_or_inline_dv: String
Three format options are currently proposed:
- If
storageType = 'u'
then<random prefix - optional><base85 encoded uuid>
: The deletion vector is stored in a file with a path relative to the data directory of this Delta table, and the file name can be reconstructed from the UUID. See Derived Fields for how to reconstruct the file name. The random prefix is recovered as the extra characters before the (20 characters fixed length) uuid. - If
storageType = 'i'
then<base85 encoded bytes>
: The deletion vector is stored inline in the log. The format used is theRoaringBitmapArray
format also used when the DV is stored on disk and described in Deletion Vector Format. - If
storageType = 'p'
then<absolute path>
: The DV is stored in a file with an absolute path given by this path, which has the same format as thepath
field in theadd
/remove
actions.
offset: Option<i32>
Start of the data for this DV in number of bytes from the beginning of the file it is stored in.
Always None (absent in JSON) when storageType = 'i'
.
size_in_bytes: i32
Size of the serialized DV in bytes (raw data size, i.e. before base85 encoding, if inline).
cardinality: i64
Number of rows the given DV logically removes from the file.
Implementations§
Source§impl DeletionVectorDescriptor
impl DeletionVectorDescriptor
Sourcepub fn absolute_path(&self, parent: &Url) -> DeltaResult<Option<Url>>
pub fn absolute_path(&self, parent: &Url) -> DeltaResult<Option<Url>>
get the absolute path of the deletion vector
Trait Implementations§
Source§impl Clone for DeletionVectorDescriptor
impl Clone for DeletionVectorDescriptor
Source§fn clone(&self) -> DeletionVectorDescriptor
fn clone(&self) -> DeletionVectorDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeletionVectorDescriptor
impl Debug for DeletionVectorDescriptor
Source§impl<'de> Deserialize<'de> for DeletionVectorDescriptor
impl<'de> Deserialize<'de> for DeletionVectorDescriptor
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
Source§impl PartialEq for DeletionVectorDescriptor
impl PartialEq for DeletionVectorDescriptor
Source§impl Serialize for DeletionVectorDescriptor
impl Serialize for DeletionVectorDescriptor
impl Eq for DeletionVectorDescriptor
impl StructuralPartialEq for DeletionVectorDescriptor
Auto Trait Implementations§
impl Freeze for DeletionVectorDescriptor
impl RefUnwindSafe for DeletionVectorDescriptor
impl Send for DeletionVectorDescriptor
impl Sync for DeletionVectorDescriptor
impl Unpin for DeletionVectorDescriptor
impl UnwindSafe for DeletionVectorDescriptor
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
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
Compare self to
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>
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