Skip to main content

QueryEngine

Trait QueryEngine 

Source
pub trait QueryEngine: GraphExport + GraphImport {
    type Scratch;
    type Output;

    // Required methods
    fn gc_versions(&self);
    fn snapshot_pinned(&self) -> bool;
    fn apply_redo(&self, ops: Vec<RedoOp>, commit_ts: u64) -> Result<()>;
    fn validate_redo_group(&self, records: &[(&[RedoOp], u64)]) -> Result<()>;
    fn pattern_stats<'a>(
        &'a self,
        params: &'a BTreeMap<String, Value>,
    ) -> Box<dyn PatternStats + 'a>;
    fn execute_read(&self, request: ReadRequest<'_>) -> Result<Self::Output>;
    fn execute_write(
        &self,
        request: WriteRequest<'_, Self::Scratch>,
    ) -> Result<Self::Output>;
    fn take_redo(&self, scratch: &mut Self::Scratch) -> Vec<RedoOp>;
}

Required Associated Types§

Source

type Scratch

Private transaction scratch. Not shared across engines.

Source

type Output

Rows, counters, and effect. The concrete engine names the result type so the facade does not depend on a per-row trait.

Required Methods§

Source

fn gc_versions(&self)

Source

fn snapshot_pinned(&self) -> bool

Source

fn apply_redo(&self, ops: Vec<RedoOp>, commit_ts: u64) -> Result<()>

Source

fn validate_redo_group(&self, records: &[(&[RedoOp], u64)]) -> Result<()>

Source

fn pattern_stats<'a>( &'a self, params: &'a BTreeMap<String, Value>, ) -> Box<dyn PatternStats + 'a>

Planner cost input for one statement. Estimates that read params must not outlive this borrow.

Source

fn execute_read(&self, request: ReadRequest<'_>) -> Result<Self::Output>

Source

fn execute_write( &self, request: WriteRequest<'_, Self::Scratch>, ) -> Result<Self::Output>

Source

fn take_redo(&self, scratch: &mut Self::Scratch) -> Vec<RedoOp>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§