pub struct MultiModeExecutor { /* private fields */ }Expand description
Multi-mode executor that routes to specialized executors
Implementations§
Source§impl MultiModeExecutor
impl MultiModeExecutor
Sourcepub fn new(graph: Arc<GraphStore>, index: Arc<GraphTableIndex>) -> Self
pub fn new(graph: Arc<GraphStore>, index: Arc<GraphTableIndex>) -> Self
Create a new multi-mode executor
Sourcepub fn execute(&self, query: &str) -> Result<ExecuteResult, ExecutionError>
pub fn execute(&self, query: &str) -> Result<ExecuteResult, ExecutionError>
Execute a query string, auto-detecting the mode
Sourcepub fn execute_as(
&self,
query: &str,
mode: QueryMode,
) -> Result<ExecuteResult, ExecutionError>
pub fn execute_as( &self, query: &str, mode: QueryMode, ) -> Result<ExecuteResult, ExecutionError>
Execute with explicit mode
Auto Trait Implementations§
impl Forget for MultiModeExecutor
impl Freeze for MultiModeExecutorwhere
*const ArcInner<GraphStore> is !null: Freeze,
PhantomData<ArcInner<GraphStore>>: Freeze,
*const ArcInner<GraphTableIndex> is !null: Freeze,
PhantomData<ArcInner<GraphTableIndex>>: Freeze,
*const ArcInner<HashMap<String, HashMap<String, Value>>> is !null: Freeze,
PhantomData<ArcInner<HashMap<String, HashMap<String, Value>>>>: Freeze,
*const ArcInner<HashMap<(String, String, String), HashMap<String, Value>>> is !null: Freeze,
PhantomData<ArcInner<HashMap<(String, String, String), HashMap<String, Value>>>>: Freeze,
impl Move for MultiModeExecutor
impl RefUnwindSafe for MultiModeExecutorwhere
Atomic<usize>: RefUnwindSafe,
RwLock<HashMap<String, RecordLocation>>: RefUnwindSafe,
RwLock<HashMap<String, Vec<(String, String, f32)>>>: RefUnwindSafe,
RwLock<HashMap<LabelId, HashSet<String>>>: RefUnwindSafe,
RwLock<HashMap<String, HashSet<String>>>: RefUnwindSafe,
RwLock<BloomSegment>: RefUnwindSafe,
RwLock<usize>: RefUnwindSafe,
RwLock<RegistryInner>: RefUnwindSafe,
RwLock<Vec<Page>>: RefUnwindSafe,
Atomic<u32>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
RwLock<HashMap<String, TableRef>>: RefUnwindSafe,
RwLock<HashMap<RowKey, String>>: RefUnwindSafe,
impl Send for MultiModeExecutor
impl Sync for MultiModeExecutor
impl Unpin for MultiModeExecutor
impl UnsafeUnpin for MultiModeExecutorwhere
*const ArcInner<GraphStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<GraphStore>>: UnsafeUnpin,
*const ArcInner<GraphTableIndex> is !null: UnsafeUnpin,
PhantomData<ArcInner<GraphTableIndex>>: UnsafeUnpin,
*const ArcInner<HashMap<String, HashMap<String, Value>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<String, HashMap<String, Value>>>>: UnsafeUnpin,
*const ArcInner<HashMap<(String, String, String), HashMap<String, Value>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<(String, String, String), HashMap<String, Value>>>>: UnsafeUnpin,
impl UnwindSafe for MultiModeExecutorwhere
Arc<GraphStore>: UnwindSafe,
Arc<GraphTableIndex>: UnwindSafe,
Arc<HashMap<String, HashMap<String, Value>>>: UnwindSafe,
Arc<HashMap<(String, String, String), HashMap<String, Value>>>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request