Struct deltalake::kernel::DeletionVectorDescriptor
source · 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§
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<DeletionVectorDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DeletionVectorDescriptor, <__D as Deserializer<'de>>::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§fn eq(&self, other: &DeletionVectorDescriptor) -> bool
fn eq(&self, other: &DeletionVectorDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DeletionVectorDescriptor
impl Serialize for DeletionVectorDescriptor
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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 moreCreates a shared type from an unshared type.