pub struct ChangeRows {
pub upserts: Vec<RecordBatch>,
pub deletes: Vec<RecordBatch>,
}Expand description
A changelog batch split by its SyncMode::CHANGE_TYPE_COLUMN into the
rows that upsert vs. the rows that delete, both with the _change_type
column stripped so they render like ordinary table rows.
INSERT / UPDATE_AFTER → upserts; DELETE → deletes. UPDATE_BEFORE
is dropped: it is the pre-image of an in-place update whose UPDATE_AFTER
upsert overwrites the node, so emitting a delete for it would destroy the
updated row (deletes are applied last in the sink). An unknown change type is
a hard error (better than silently dropping a row).
Fields§
§upserts: Vec<RecordBatch>Rows to feed the upsert pipeline (vertices + edges).
deletes: Vec<RecordBatch>Rows that name nodes to remove.
Implementations§
Trait Implementations§
Source§impl Debug for ChangeRows
impl Debug for ChangeRows
Auto Trait Implementations§
impl !RefUnwindSafe for ChangeRows
impl !UnwindSafe for ChangeRows
impl Freeze for ChangeRows
impl Send for ChangeRows
impl Sync for ChangeRows
impl Unpin for ChangeRows
impl UnsafeUnpin for ChangeRows
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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