pub enum Delta {
Set {
key: EncodedKey,
values: EncodedValues,
},
Unset {
key: EncodedKey,
values: EncodedValues,
},
Remove {
key: EncodedKey,
},
Drop {
key: EncodedKey,
up_to_version: Option<CommitVersion>,
keep_last_versions: Option<usize>,
},
}Variants§
Set
Unset
Unset an entry, preserving the deleted values. Symmetric with Set - use when the deleted data matters (e.g., row data, CDC).
Remove
Remove an entry without preserving the deleted values. Use when only the key matters (e.g., index entries, catalog metadata).
Fields
§
key: EncodedKeyDrop
Drop operation - completely erases versioned entries from storage. Unlike Remove (which writes a tombstone and generates CDC), Drop:
- Deletes existing entries without writing anything new
- Never generates CDC events
Fields
§
key: EncodedKey§
up_to_version: Option<CommitVersion>If Some(v), drop all versions where version < v (keeps v and later). If None, this constraint is not applied.
Implementations§
Source§impl Delta
impl Delta
Sourcepub fn key(&self) -> &EncodedKey
pub fn key(&self) -> &EncodedKey
Returns the key
Sourcepub fn values(&self) -> Option<&EncodedValues>
pub fn values(&self) -> Option<&EncodedValues>
Returns the encoded values, if None, it means the entry is marked as remove or drop.
Trait Implementations§
Source§impl Ord for Delta
impl Ord for Delta
Source§impl PartialOrd for Delta
impl PartialOrd for Delta
impl Eq for Delta
impl StructuralPartialEq for Delta
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnsafeUnpin for Delta
impl UnwindSafe for Delta
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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<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