pub struct UnifiedExecutor { /* private fields */ }Implementations§
Source§impl UnifiedExecutor
impl UnifiedExecutor
Sourcepub fn new(
graph: Arc<GraphStore>,
index: Arc<GraphTableIndex>,
) -> UnifiedExecutor
pub fn new( graph: Arc<GraphStore>, index: Arc<GraphTableIndex>, ) -> UnifiedExecutor
Create a new executor
Sourcepub fn new_with_node_properties(
graph: Arc<GraphStore>,
index: Arc<GraphTableIndex>,
node_properties: HashMap<String, HashMap<String, Value>>,
) -> UnifiedExecutor
pub fn new_with_node_properties( graph: Arc<GraphStore>, index: Arc<GraphTableIndex>, node_properties: HashMap<String, HashMap<String, Value>>, ) -> UnifiedExecutor
Create a new executor with node properties
Sourcepub fn execute_on(
graph: &GraphStore,
query: &QueryExpr,
) -> Result<UnifiedResult, ExecutionError>
pub fn execute_on( graph: &GraphStore, query: &QueryExpr, ) -> Result<UnifiedResult, ExecutionError>
Execute a query directly against a graph reference
This is a convenience method for simple graph-only queries.
For table joins, use new() with proper Arc ownership.
Sourcepub fn execute_on_with_node_properties(
graph: &GraphStore,
query: &QueryExpr,
node_properties: HashMap<String, HashMap<String, Value>>,
) -> Result<UnifiedResult, ExecutionError>
pub fn execute_on_with_node_properties( graph: &GraphStore, query: &QueryExpr, node_properties: HashMap<String, HashMap<String, Value>>, ) -> Result<UnifiedResult, ExecutionError>
Execute a query directly against a graph reference with custom node properties
Sourcepub fn execute(
&self,
query: &QueryExpr,
) -> Result<UnifiedResult, ExecutionError>
pub fn execute( &self, query: &QueryExpr, ) -> Result<UnifiedResult, ExecutionError>
Execute a query
Auto Trait Implementations§
impl Freeze for UnifiedExecutor
impl RefUnwindSafe for UnifiedExecutor
impl Send for UnifiedExecutor
impl Sync for UnifiedExecutor
impl Unpin for UnifiedExecutor
impl UnsafeUnpin for UnifiedExecutor
impl UnwindSafe for UnifiedExecutor
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 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