pub struct SearchOutOfCoreMutationWriter<'reader> { /* private fields */ }Expand description
An ordered mutation batch pinned to one reader generation.
Upserts and deletes share strictly increasing document IDs. A body is read once, and any failed operation poisons the batch. Publication keeps the existing expected-generation check and never overwrites a newer head.
Implementations§
Source§impl<'reader> SearchOutOfCoreMutationWriter<'reader>
impl<'reader> SearchOutOfCoreMutationWriter<'reader>
pub fn upsert_reader( &mut self, header: SearchDocumentHeader, body: impl Read, source: SearchDocumentBody, ) -> Result<(), HawDBError>
pub fn delete(&mut self, document_id: &str) -> Result<(), HawDBError>
pub fn finish( self, ) -> Result<(SearchProjectionDeltaReport, SearchOutOfCoreGenerationBuildReport, SearchOutOfCoreMetrics), HawDBError>
Sourcepub fn prepare_publication(
self,
) -> Result<SearchOutOfCorePreparedUpdate, HawDBError>
pub fn prepare_publication( self, ) -> Result<SearchOutOfCorePreparedUpdate, HawDBError>
Builds an invisible candidate while retaining the original base selector.
Auto Trait Implementations§
impl<'reader> !RefUnwindSafe for SearchOutOfCoreMutationWriter<'reader>
impl<'reader> !UnwindSafe for SearchOutOfCoreMutationWriter<'reader>
impl<'reader> Forget for SearchOutOfCoreMutationWriter<'reader>
impl<'reader> Freeze for SearchOutOfCoreMutationWriter<'reader>
impl<'reader> Move for SearchOutOfCoreMutationWriter<'reader>
impl<'reader> Send for SearchOutOfCoreMutationWriter<'reader>
impl<'reader> Sync for SearchOutOfCoreMutationWriter<'reader>
impl<'reader> Unpin for SearchOutOfCoreMutationWriter<'reader>
impl<'reader> UnsafeUnpin for SearchOutOfCoreMutationWriter<'reader>
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> 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