pub struct EngineBuilder { /* private fields */ }Expand description
Builder for Engine with Phase 2+ configuration options.
with_chunk_capacity and with_memory_limit are no-ops until the relevant
pipeline operators use them — they are wired here so callers can set them now
and Phase 3/4 work can plug in without API changes.
Implementations§
Source§impl EngineBuilder
impl EngineBuilder
Sourcepub fn new(
store: NodeStore,
catalog: Catalog,
csrs: HashMap<u32, CsrForward>,
db_root: impl Into<PathBuf>,
) -> Self
pub fn new( store: NodeStore, catalog: Catalog, csrs: HashMap<u32, CsrForward>, db_root: impl Into<PathBuf>, ) -> Self
Start building an engine from storage primitives.
Sourcepub fn with_chunked_pipeline(self, enabled: bool) -> Self
pub fn with_chunked_pipeline(self, enabled: bool) -> Self
Enable the chunked vectorized pipeline (equivalent to
Engine::with_chunked_pipeline).
Sourcepub fn with_chunk_capacity(self, n: usize) -> Self
pub fn with_chunk_capacity(self, n: usize) -> Self
Override the chunk capacity used by pipeline operators (Phase 4).
Currently a no-op — stored for future use when Phase 4 passes this
value into ScanByLabel and other operators.
Sourcepub fn with_memory_limit(self, bytes: usize) -> Self
pub fn with_memory_limit(self, bytes: usize) -> Self
Set the per-query memory limit in bytes (Phase 3).
When the accumulated frontier during two-hop BFS expansion exceeds
this budget, the engine returns Error::QueryMemoryExceeded instead
of continuing and potentially running out of memory.
Default: usize::MAX (unlimited).
Auto Trait Implementations§
impl Freeze for EngineBuilder
impl RefUnwindSafe for EngineBuilder
impl Send for EngineBuilder
impl Sync for EngineBuilder
impl Unpin for EngineBuilder
impl UnsafeUnpin for EngineBuilder
impl UnwindSafe for EngineBuilder
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
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>
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>
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