pub struct RoaringValue;Expand description
Value handler for RoaringTreemap in partitioned tables.
This struct provides the bridge between the generic partitioned storage and roaring-specific value operations. It handles:
- Serialization/deserialization of RoaringTreemap
- Size queries for segment rolling decisions
- Version management for future migrations
Implementations§
Source§impl RoaringValue
impl RoaringValue
Sourcepub fn decode(&self, data: &[u8]) -> Result<RoaringTreemap>
pub fn decode(&self, data: &[u8]) -> Result<RoaringTreemap>
Sourcepub fn get_serialized_size(&self, bitmap: &RoaringTreemap) -> Result<usize>
pub fn get_serialized_size(&self, bitmap: &RoaringTreemap) -> Result<usize>
Sourcepub fn empty(&self) -> RoaringTreemap
pub fn empty(&self) -> RoaringTreemap
Creates an empty RoaringTreemap.
Sourcepub fn from_single(&self, value: u64) -> RoaringTreemap
pub fn from_single(&self, value: u64) -> RoaringTreemap
Creates a RoaringTreemap from a single value.
Sourcepub fn from_iter<I>(&self, iter: I) -> RoaringTreemapwhere
I: IntoIterator<Item = u64>,
pub fn from_iter<I>(&self, iter: I) -> RoaringTreemapwhere
I: IntoIterator<Item = u64>,
Creates a RoaringTreemap from an iterator of values.
Trait Implementations§
Source§impl Clone for RoaringValue
impl Clone for RoaringValue
Source§fn clone(&self) -> RoaringValue
fn clone(&self) -> RoaringValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoaringValue
impl Debug for RoaringValue
Source§impl Default for RoaringValue
impl Default for RoaringValue
Source§impl Value for RoaringValue
impl Value for RoaringValue
Source§type SelfType<'a> = RoaringTreemap
where
Self: 'a
type SelfType<'a> = RoaringTreemap where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Auto Trait Implementations§
impl Freeze for RoaringValue
impl RefUnwindSafe for RoaringValue
impl Send for RoaringValue
impl Sync for RoaringValue
impl Unpin for RoaringValue
impl UnwindSafe for RoaringValue
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