pub struct ScanOperator { /* private fields */ }Expand description
A scan operator that reads nodes from storage.
Implementations§
Source§impl ScanOperator
impl ScanOperator
Sourcepub fn with_label(store: Arc<LpgStore>, label: impl Into<String>) -> Self
pub fn with_label(store: Arc<LpgStore>, label: impl Into<String>) -> Self
Creates a new scan operator for nodes with a specific label.
Sourcepub fn with_chunk_capacity(self, capacity: usize) -> Self
pub fn with_chunk_capacity(self, capacity: usize) -> Self
Sets the chunk capacity.
Sourcepub fn with_tx_context(self, epoch: EpochId, tx_id: Option<TxId>) -> Self
pub fn with_tx_context(self, epoch: EpochId, tx_id: Option<TxId>) -> Self
Sets the transaction context for MVCC visibility.
When set, the scan will only return nodes visible to this transaction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScanOperator
impl !RefUnwindSafe for ScanOperator
impl Send for ScanOperator
impl Sync for ScanOperator
impl Unpin for ScanOperator
impl !UnwindSafe for ScanOperator
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