pub struct ReplacePair {
pub subject: EncodedTerm,
pub predicate: EncodedTerm,
pub graph_name: EncodedTerm,
pub old_object: EncodedTerm,
pub new_object: EncodedTerm,
}Expand description
One atomic object-term replacement: the versioned rows of
(subject, predicate, old_object, graph) are deleted and rows of
(subject, predicate, new_object, graph) are put in ONE WriteBatch at
the shared commit timestamp, so no snapshot sees both rows or neither.
The geo index upgrade’s primitive — datatype-blind (see
Storage::apply_replace_pairs).
Fields§
§subject: EncodedTermShared subject of the old and new rows.
predicate: EncodedTermShared predicate of the old and new rows.
graph_name: EncodedTermShared graph of the old and new rows.
old_object: EncodedTermThe object being replaced away.
new_object: EncodedTermThe object replacing it.
Implementations§
Source§impl ReplacePair
impl ReplacePair
Sourcepub fn old_quad(&self) -> EncodedQuad
pub fn old_quad(&self) -> EncodedQuad
The quad encoding away.
Sourcepub fn new_quad(&self) -> EncodedQuad
pub fn new_quad(&self) -> EncodedQuad
The quad replacing it.
Trait Implementations§
Source§impl Clone for ReplacePair
impl Clone for ReplacePair
Source§fn clone(&self) -> ReplacePair
fn clone(&self) -> ReplacePair
Returns a duplicate 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 ReplacePair
impl Debug for ReplacePair
Source§impl PartialEq for ReplacePair
impl PartialEq for ReplacePair
impl Eq for ReplacePair
impl StructuralPartialEq for ReplacePair
Auto Trait Implementations§
impl Freeze for ReplacePair
impl RefUnwindSafe for ReplacePair
impl Send for ReplacePair
impl Sync for ReplacePair
impl Unpin for ReplacePair
impl UnsafeUnpin for ReplacePair
impl UnwindSafe for ReplacePair
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