pub struct ZoneMapIndex { /* private fields */ }Expand description
Zone map index for a property column.
Maps chunk IDs to their zone map entries.
Implementations§
Source§impl ZoneMapIndex
impl ZoneMapIndex
Sourcepub fn insert(&mut self, chunk_id: u64, entry: ZoneMapEntry)
pub fn insert(&mut self, chunk_id: u64, entry: ZoneMapEntry)
Adds or updates a zone map entry for a chunk.
Sourcepub fn get(&self, chunk_id: u64) -> Option<&ZoneMapEntry>
pub fn get(&self, chunk_id: u64) -> Option<&ZoneMapEntry>
Gets the zone map entry for a chunk.
Sourcepub fn remove(&mut self, chunk_id: u64) -> Option<ZoneMapEntry>
pub fn remove(&mut self, chunk_id: u64) -> Option<ZoneMapEntry>
Removes the zone map entry for a chunk.
Sourcepub fn filter_equal<'a>(
&'a self,
value: &'a Value,
chunk_ids: impl Iterator<Item = u64> + 'a,
) -> impl Iterator<Item = u64> + 'a
pub fn filter_equal<'a>( &'a self, value: &'a Value, chunk_ids: impl Iterator<Item = u64> + 'a, ) -> impl Iterator<Item = u64> + 'a
Filters chunk IDs that might match an equality predicate.
Sourcepub fn filter_range<'a>(
&'a self,
lower: Option<&'a Value>,
upper: Option<&'a Value>,
lower_inclusive: bool,
upper_inclusive: bool,
chunk_ids: impl Iterator<Item = u64> + 'a,
) -> impl Iterator<Item = u64> + 'a
pub fn filter_range<'a>( &'a self, lower: Option<&'a Value>, upper: Option<&'a Value>, lower_inclusive: bool, upper_inclusive: bool, chunk_ids: impl Iterator<Item = u64> + 'a, ) -> impl Iterator<Item = u64> + 'a
Filters chunk IDs that might match a range predicate.
Sourcepub fn chunks_ordered_by_min(&self) -> Vec<u64>
pub fn chunks_ordered_by_min(&self) -> Vec<u64>
Returns chunk IDs sorted by their minimum value.
Auto Trait Implementations§
impl Freeze for ZoneMapIndex
impl RefUnwindSafe for ZoneMapIndex
impl Send for ZoneMapIndex
impl Sync for ZoneMapIndex
impl Unpin for ZoneMapIndex
impl UnwindSafe for ZoneMapIndex
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