pub struct CypherQueryOperator {
pub graph_store: Arc<RwLock<MemoryGraphStore>>,
pub query: CypherQuery,
pub graph_name: String,
pub params: BTreeMap<String, Value>,
}Expand description
CypherQueryOperator — execute a parsed openCypher query against
a named graph and project the resulting (start, end) vertex
pairs into a posting list for downstream operator composition.
Routes through CypherWriter because it covers the full clause set,
including
CREATE/MERGE/SET/DELETE/UNWIND. Read-only queries still flow
through the same path; the writer leaves the store untouched
when the query is read-only.
Fields§
§graph_store: Arc<RwLock<MemoryGraphStore>>§query: CypherQuery§graph_name: String§params: BTreeMap<String, Value>Implementations§
Source§impl CypherQueryOperator
impl CypherQueryOperator
pub fn new( graph_store: Arc<RwLock<MemoryGraphStore>>, query: CypherQuery, graph_name: impl Into<String>, ) -> Self
pub fn with_params(self, params: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Operator for CypherQueryOperator
impl Operator for CypherQueryOperator
fn execute(&self, _ctx: &ExecutionContext) -> OperatorResult
fn cost_estimate(&self, stats: &IndexStats) -> f64
Auto Trait Implementations§
impl !RefUnwindSafe for CypherQueryOperator
impl !UnwindSafe for CypherQueryOperator
impl Freeze for CypherQueryOperator
impl Send for CypherQueryOperator
impl Sync for CypherQueryOperator
impl Unpin for CypherQueryOperator
impl UnsafeUnpin for CypherQueryOperator
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