pub struct MultiReadTransaction { /* private fields */ }Implementations§
Source§impl MultiReadTransaction
impl MultiReadTransaction
pub fn new( engine: MultiTransaction, version: Option<CommitVersion>, ) -> Result<Self>
pub fn new_with_lease( engine: MultiTransaction, lease: VersionLeaseGuard, ) -> Result<Self>
Source§impl MultiReadTransaction
impl MultiReadTransaction
pub fn version(&self) -> CommitVersion
pub fn read_as_of_version_exclusive(&mut self, version: CommitVersion)
pub fn read_as_of_version_inclusive(&mut self, version: CommitVersion)
pub fn get<K: Into<TaggedKey> + Clone>( &self, key: &K, ) -> Result<Option<TransactionValue>>
pub fn get_many( &self, keys: &[EncodedKey], ) -> Result<HashMap<EncodedKey, MultiVersionRow>>
pub fn contains<K: Into<TaggedKey> + Clone>(&self, key: &K) -> Result<bool>
pub fn scan(&self) -> Result<MultiVersionBatch<TaggedKey>>
pub fn prefix( &self, prefix: &EncodedKey, ) -> Result<MultiVersionBatch<TaggedKey>>
pub fn prefix_rev( &self, prefix: &EncodedKey, ) -> Result<MultiVersionBatch<TaggedKey>>
pub fn range_encoded( &self, range: EncodedKeyRange, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<TaggedKey>>> + Send + '_>
pub fn range_rev_encoded( &self, range: EncodedKeyRange, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<TaggedKey>>> + Send + '_>
pub fn range( &self, range: TaggedKeyBoundRange, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<TaggedKey>>> + Send + '_>
pub fn range_row( &self, storage: StorageId, start: Bound<StorageRowKey>, end: Bound<StorageRowKey>, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<StorageRowKey>>> + Send + '_>
pub fn range_partitioned_row( &self, storage: StorageId, start: Bound<StoragePartitionedRowKey>, end: Bound<StoragePartitionedRowKey>, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<StoragePartitionedRowKey>>> + Send + '_>
pub fn range_rev( &self, range: TaggedKeyBoundRange, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<TaggedKey>>> + Send + '_>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MultiReadTransaction
impl !UnwindSafe for MultiReadTransaction
impl Freeze for MultiReadTransaction
impl Send for MultiReadTransaction
impl Sync for MultiReadTransaction
impl Unpin for MultiReadTransaction
impl UnsafeUnpin for MultiReadTransaction
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,
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> ⓘ
Converts
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> ⓘ
Converts
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