pub struct MutablePullExecutor<'a, S: GraphStorageMut> { /* private fields */ }Expand description
Pull-based read-write executor. Wraps the existing
MutableExecutor under the same row-cursor API. Mutations are
applied during open_compiled; the returned cursor yields the
resulting rows lazily.
Implementations§
Source§impl<'a, S: GraphStorageMut + GraphStorage> MutablePullExecutor<'a, S>
impl<'a, S: GraphStorageMut + GraphStorage> MutablePullExecutor<'a, S>
pub fn new(storage: &'a mut S, params: BTreeMap<String, LoraValue>) -> Self
Sourcepub fn open_compiled(
self,
compiled: &'a CompiledQuery,
) -> ExecResult<Box<dyn RowSource + 'a>>where
S: 'a,
pub fn open_compiled(
self,
compiled: &'a CompiledQuery,
) -> ExecResult<Box<dyn RowSource + 'a>>where
S: 'a,
Open a cursor for a compiled write query.
Fast path: when a branch root is one of Create / Set /
Delete / Remove / Merge and its input subtree is fully
streamable, returns a [StreamingWriteCursor] that pulls input
row-by-row and applies the per-row write through
MutableExecutor::apply_write_op. UNION ALL plans stream
one branch at a time. Plain UNION drains branches first so
rows can be deduplicated by name.
Fallback: a branch that is not streamable materializes through
MutableExecutor::execute_rows and wraps the result in a
BufferedRowSource.
Auto Trait Implementations§
impl<'a, S> Freeze for MutablePullExecutor<'a, S>
impl<'a, S> RefUnwindSafe for MutablePullExecutor<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for MutablePullExecutor<'a, S>where
S: Send,
impl<'a, S> Sync for MutablePullExecutor<'a, S>where
S: Sync,
impl<'a, S> Unpin for MutablePullExecutor<'a, S>
impl<'a, S> UnsafeUnpin for MutablePullExecutor<'a, S>
impl<'a, S> !UnwindSafe for MutablePullExecutor<'a, S>
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> 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