pub struct OrderedCompactionMapping { /* private fields */ }Expand description
Ordered-compaction adapter for one rewrite group’s existing bitmap/rank remap. This adapter does not replace the legacy FRI reader or writer.
Implementations§
Source§impl OrderedCompactionMapping
impl OrderedCompactionMapping
Sourcepub fn new(remap: Arc<RowAddrRemap>) -> Self
pub fn new(remap: Arc<RowAddrRemap>) -> Self
Use a remap whose fragment layout was validated when it was constructed.
Trait Implementations§
Source§impl Debug for OrderedCompactionMapping
impl Debug for OrderedCompactionMapping
Source§impl DeepSizeOf for OrderedCompactionMapping
impl DeepSizeOf for OrderedCompactionMapping
fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of(&self) -> usize
Source§impl MappingReader for OrderedCompactionMapping
impl MappingReader for OrderedCompactionMapping
Source§fn remap_row_id<'life0, 'async_trait>(
&'life0 self,
row_id: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<u64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remap_row_id<'life0, 'async_trait>(
&'life0 self,
row_id: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<u64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remap one physical row ID, or return
None if the row was deleted.Source§fn remap_row_ids<'life0, 'life1, 'async_trait>(
&'life0 self,
row_ids: &'life1 [u64],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<u64>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remap_row_ids<'life0, 'life1, 'async_trait>(
&'life0 self,
row_ids: &'life1 [u64],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<u64>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remap a batch, preserving input order and duplicates, with one result per input.
Auto Trait Implementations§
impl Freeze for OrderedCompactionMapping
impl RefUnwindSafe for OrderedCompactionMapping
impl Send for OrderedCompactionMapping
impl Sync for OrderedCompactionMapping
impl Unpin for OrderedCompactionMapping
impl UnsafeUnpin for OrderedCompactionMapping
impl UnwindSafe for OrderedCompactionMapping
Blanket Implementations§
impl<T> Allocation for T
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