pub enum OperatorStorage {
Memory,
SqliteSpill,
}Expand description
Where stateful operators (take / cap / reduce) keep their scratch state.
The graph’s [StorageFactory] decides this once, at construction, for every
operator the engine’s pipelines build. Both backends are equivalent in result —
the SQLite-backed OpStorage agrees with MemoryStorage op-for-op — so the
choice is purely an operational memory/throughput trade-off.
Variants§
Memory
In-process BTreeMap scratch state (the default). Fastest, but the working
set is bounded by RAM.
SqliteSpill
Spill operator state to a private, on-disk temporary SQLite database (one per
engine, journal/sync off, exclusive locking — see
[DatabaseStorage::new_temp_file]). Lets operator state grow past RAM at the
cost of per-op SQLite calls; the scratch DB is deleted when the engine drops.
Trait Implementations§
Source§impl Clone for OperatorStorage
impl Clone for OperatorStorage
Source§fn clone(&self) -> OperatorStorage
fn clone(&self) -> OperatorStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperatorStorage
impl Debug for OperatorStorage
Source§impl Default for OperatorStorage
impl Default for OperatorStorage
Source§fn default() -> OperatorStorage
fn default() -> OperatorStorage
Returns the “default value” for a type. Read more
Source§impl PartialEq for OperatorStorage
impl PartialEq for OperatorStorage
impl Copy for OperatorStorage
impl Eq for OperatorStorage
impl StructuralPartialEq for OperatorStorage
Auto Trait Implementations§
impl Freeze for OperatorStorage
impl RefUnwindSafe for OperatorStorage
impl Send for OperatorStorage
impl Sync for OperatorStorage
impl Unpin for OperatorStorage
impl UnsafeUnpin for OperatorStorage
impl UnwindSafe for OperatorStorage
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.