pub struct SelectedRecordRead<'a> { /* private fields */ }Expand description
Selected reads on one immutable command view. Ascending keys reuse private spill readers and seek across gaps; backwards keys restart at their own bound. Duplicates, tombstones and missing keys preserve point-read semantics.
Implementations§
Source§impl SelectedRecordRead<'_>
impl SelectedRecordRead<'_>
Sourcepub fn visit_values(
&mut self,
keys: &mut RecordKeyIterator<'_>,
control: &StorageReadControl,
visit: &mut RecordPointVisitor<'_>,
) -> VersionResult<()>
pub fn visit_values( &mut self, keys: &mut RecordKeyIterator<'_>, control: &StorageReadControl, visit: &mut RecordPointVisitor<'_>, ) -> VersionResult<()>
Borrow requested keys lazily, stopping before producing another key on a false visitor or error. Key production and visitors are internal and must not reenter persistence. Reusing this reader after a stopped batch preserves its private cursor; a view without private changes keeps the provider’s single read window.
Sourcepub fn metadata(
&mut self,
key: &[u8],
control: &StorageReadControl,
) -> VersionResult<Option<RecordMetadata>>
pub fn metadata( &mut self, key: &[u8], control: &StorageReadControl, ) -> VersionResult<Option<RecordMetadata>>
Read only metadata from private entries; providers with key-only access also avoid committed payloads.
Sourcepub fn visit_value(
&mut self,
key: &[u8],
control: &StorageReadControl,
visit: &mut RecordValueVisitor<'_>,
) -> VersionResult<()>
pub fn visit_value( &mut self, key: &[u8], control: &StorageReadControl, visit: &mut RecordValueVisitor<'_>, ) -> VersionResult<()>
Borrow one value for an internal storage visitor. The visitor must not reenter persistence; after this call returns no physical read guard remains.