Skip to main content

MapScan

Struct MapScan 

Source
pub struct MapScan<V> { /* private fields */ }
Expand description

Opaque Map scan view. No public constructor. V is typically &'a S: ShardSource.

Trait Implementations§

Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> BulkScan for MapScan<&'a TypedMap<K, T, C, H>>

Source§

type TryKeys = InfallibleKeys<K, MapKeyIter<'a, K, T, C, H>>

Strict key iterator for a bounded bulk pass. Read more
Source§

fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys

Walk keys in the supplied bounds and direction through the strict path.
Source§

fn delete_key(&self, key: &K) -> DbResult<bool>

Delete one key through the collection’s ordinary non-transactional write path, returning whether that key was actually removed.
Source§

fn reject_nontx_bulk(&self) -> DbResult<()>

Refuse a non-transactional bulk mutation before it scans or deletes a row when this source requires transactional stream or claim handling.
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> BulkScan for MapScan<&'a ConstMap<K, V, H, D>>

Source§

type TryKeys = InfallibleKeys<K, ConstMapKeyIter<'a, K, V, H, D>>

Strict key iterator for a bounded bulk pass. Read more
Source§

fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys

Walk keys in the supplied bounds and direction through the strict path.
Source§

fn delete_key(&self, key: &K) -> DbResult<bool>

Delete one key through the collection’s ordinary non-transactional write path, returning whether that key was actually removed.
Source§

fn reject_nontx_bulk(&self) -> DbResult<()>

Refuse a non-transactional bulk mutation before it scans or deletes a row when this source requires transactional stream or claim handling.
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> BulkScan for MapScan<&'a ZeroMap<K, V, T, H, D>>

Source§

type TryKeys = InfallibleKeys<K, ZeroMapKeyIter<'a, K, V, T, H, D>>

Strict key iterator for a bounded bulk pass. Read more
Source§

fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys

Walk keys in the supplied bounds and direction through the strict path.
Source§

fn delete_key(&self, key: &K) -> DbResult<bool>

Delete one key through the collection’s ordinary non-transactional write path, returning whether that key was actually removed.
Source§

fn reject_nontx_bulk(&self) -> DbResult<()>

Refuse a non-transactional bulk mutation before it scans or deletes a row when this source requires transactional stream or claim handling.
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> BulkScan for MapScan<&'a VarMap<K, H>>

Source§

type TryKeys = InfallibleKeys<K, VarMapKeyIter<'a, K, H>>

Strict key iterator for a bounded bulk pass. Read more
Source§

fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys

Walk keys in the supplied bounds and direction through the strict path.
Source§

fn delete_key(&self, key: &K) -> DbResult<bool>

Delete one key through the collection’s ordinary non-transactional write path, returning whether that key was actually removed.
Source§

fn reject_nontx_bulk(&self) -> DbResult<()>

Refuse a non-transactional bulk mutation before it scans or deletes a row when this source requires transactional stream or claim handling.
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> BulkScan for MapScan<&'a VarTypedMap<K, T, C, H>>

Source§

type TryKeys = InfallibleKeys<K, VarTypedMapKeyIter<'a, K, T, C, H>>

Strict key iterator for a bounded bulk pass. Read more
Source§

fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys

Walk keys in the supplied bounds and direction through the strict path.
Source§

fn delete_key(&self, key: &K) -> DbResult<bool>

Delete one key through the collection’s ordinary non-transactional write path, returning whether that key was actually removed.
Source§

fn reject_nontx_bulk(&self) -> DbResult<()>

Refuse a non-transactional bulk mutation before it scans or deletes a row when this source requires transactional stream or claim handling.
Source§

impl<V: Clone> Clone for MapScan<V>

Source§

fn clone(&self) -> MapScan<V>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V: Copy> Copy for MapScan<V>

Source§

impl<V> Debug for MapScan<V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> OrderedScan for MapScan<&'a TypedMap<K, T, C, H>>

Source§

type Key = K

Source§

type Row = (K, TypedRef<'a, T>)

Source§

type Iter = MapRowIter<'a, K, T, C, H>

Source§

type KeyIter = MapKeyIter<'a, K, T, C, H>

Source§

fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter

Takes self by value (TreeScan/MapScan are Copy) so the returned iterator is not tied to a temporary &Self borrow — required for Scope::iter(self) fluent chains under a generic S: OrderedScan.
Source§

fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter

Source§

fn peek_row_key(row: &Self::Row) -> K

Key of row without consuming it — used by pagination before handing the row to a closure.
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> OrderedScan for MapScan<&'a ConstMap<K, V, H, D>>

Source§

type Key = K

Source§

type Row = (K, [u8; V])

Source§

type Iter = ConstMapRowIter<'a, K, V, H, D>

Source§

type KeyIter = ConstMapKeyIter<'a, K, V, H, D>

Source§

fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter

Takes self by value (TreeScan/MapScan are Copy) so the returned iterator is not tied to a temporary &Self borrow — required for Scope::iter(self) fluent chains under a generic S: OrderedScan.
Source§

fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter

Source§

fn peek_row_key(row: &Self::Row) -> K

Key of row without consuming it — used by pagination before handing the row to a closure.
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> OrderedScan for MapScan<&'a ZeroMap<K, V, T, H, D>>

Source§

type Key = K

Source§

type Row = (K, T)

Source§

type Iter = ZeroMapRowIter<'a, K, V, T, H, D>

Source§

type KeyIter = ZeroMapKeyIter<'a, K, V, T, H, D>

Source§

fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter

Takes self by value (TreeScan/MapScan are Copy) so the returned iterator is not tied to a temporary &Self borrow — required for Scope::iter(self) fluent chains under a generic S: OrderedScan.
Source§

fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter

Source§

fn peek_row_key(row: &Self::Row) -> K

Key of row without consuming it — used by pagination before handing the row to a closure.
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> OrderedScan for MapScan<&'a VarMap<K, H>>

Source§

type Key = K

Source§

type Row = (K, ByteView)

Source§

type Iter = VarMapRowIter<'a, K, H>

Source§

type KeyIter = VarMapKeyIter<'a, K, H>

Source§

fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter

Takes self by value (TreeScan/MapScan are Copy) so the returned iterator is not tied to a temporary &Self borrow — required for Scope::iter(self) fluent chains under a generic S: OrderedScan.
Source§

fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter

Source§

fn peek_row_key(row: &Self::Row) -> K

Key of row without consuming it — used by pagination before handing the row to a closure.
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> OrderedScan for MapScan<&'a VarTypedMap<K, T, C, H>>

Source§

type Key = K

Source§

type Row = (K, T)

Source§

type Iter = VarTypedMapRowIter<'a, K, T, C, H>

Source§

type KeyIter = VarTypedMapKeyIter<'a, K, T, C, H>

Source§

fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter

Takes self by value (TreeScan/MapScan are Copy) so the returned iterator is not tied to a temporary &Self borrow — required for Scope::iter(self) fluent chains under a generic S: OrderedScan.
Source§

fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter

Source§

fn peek_row_key(row: &Self::Row) -> K

Key of row without consuming it — used by pagination before handing the row to a closure.
Source§

impl<K: Key + Send + Sync + Hash + Eq, T: Clone + Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> OwnedRows for MapScan<&TypedMap<K, T, C, H>>

Source§

type Val = T

Source§

fn own(row: Self::Row) -> (Self::Key, Self::Val)

Source§

impl<K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> OwnedRows for MapScan<&ConstMap<K, V, H, D>>

Source§

type Val = [u8; V]

Source§

fn own(row: Self::Row) -> (Self::Key, Self::Val)

Source§

impl<K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> OwnedRows for MapScan<&ZeroMap<K, V, T, H, D>>

Source§

type Val = T

Source§

fn own(row: Self::Row) -> (Self::Key, Self::Val)

Source§

impl<K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> OwnedRows for MapScan<&VarMap<K, H>>

Source§

type Val = ByteView

Source§

fn own(row: Self::Row) -> (Self::Key, Self::Val)

Source§

impl<K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> OwnedRows for MapScan<&VarTypedMap<K, T, C, H>>

Source§

type Val = T

Source§

fn own(row: Self::Row) -> (Self::Key, Self::Val)

Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, T: Clone + PartialEq + Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> StrictRows for MapScan<&'a TypedMap<K, T, C, H>>

Source§

type TryRows = InfallibleRows<K, T, OwnedRowsIter<MapScan<&'a TypedMap<K, T, C, H>>, MapRowIter<'a, K, T, C, H>>>

Strict, owned key/value iterator for a bounded retention pass. Read more
Source§

fn try_rows(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryRows

Walk strict owned rows in the supplied bounds and direction.
Source§

fn delete_if_unchanged(&self, key: &K, expected: &T) -> DbResult<bool>

Delete key only when it still stores expected. Read more
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> StrictRows for MapScan<&'a ConstMap<K, V, H, D>>

Source§

type TryRows = InfallibleRows<K, [u8; V], ConstMapRowIter<'a, K, V, H, D>>

Strict, owned key/value iterator for a bounded retention pass. Read more
Source§

fn try_rows(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryRows

Walk strict owned rows in the supplied bounds and direction.
Source§

fn delete_if_unchanged(&self, key: &K, expected: &[u8; V]) -> DbResult<bool>

Delete key only when it still stores expected. Read more
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> StrictRows for MapScan<&'a ZeroMap<K, V, T, H, D>>

Source§

type TryRows = InfallibleRows<K, T, ZeroMapRowIter<'a, K, V, T, H, D>>

Strict, owned key/value iterator for a bounded retention pass. Read more
Source§

fn try_rows(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryRows

Walk strict owned rows in the supplied bounds and direction.
Source§

fn delete_if_unchanged(&self, key: &K, expected: &T) -> DbResult<bool>

Delete key only when it still stores expected. Read more
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> StrictRows for MapScan<&'a VarMap<K, H>>

Source§

type TryRows = VarMapTryIter<'a, K, H>

Strict, owned key/value iterator for a bounded retention pass. Read more
Source§

fn try_rows(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryRows

Walk strict owned rows in the supplied bounds and direction.
Source§

fn delete_if_unchanged(&self, key: &K, expected: &ByteView) -> DbResult<bool>

Delete key only when it still stores expected. Read more
Source§

impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> StrictRows for MapScan<&'a VarTypedMap<K, T, C, H>>

Source§

type TryRows = VarTypedMapTryIter<'a, K, T, C, H>

Strict, owned key/value iterator for a bounded retention pass. Read more
Source§

fn try_rows(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryRows

Walk strict owned rows in the supplied bounds and direction.
Source§

fn delete_if_unchanged(&self, key: &K, expected: &T) -> DbResult<bool>

Delete key only when it still stores expected. Read more

Auto Trait Implementations§

§

impl<V> Freeze for MapScan<V>
where V: Freeze,

§

impl<V> RefUnwindSafe for MapScan<V>
where V: RefUnwindSafe,

§

impl<V> Send for MapScan<V>
where V: Send,

§

impl<V> Sync for MapScan<V>
where V: Sync,

§

impl<V> Unpin for MapScan<V>
where V: Unpin,

§

impl<V> UnsafeUnpin for MapScan<V>
where V: UnsafeUnpin,

§

impl<V> UnwindSafe for MapScan<V>
where V: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more