pub struct CompactSpaceU64Accessor(/* private fields */);
Expand description
Exposes the compact space compressed values as u64.
This allows faster access to the values, as u64 is faster to work with than u128.
It also allows to handle u128 values like u64, via the open_u64_lenient
as a uniform
access interface.
When converting from the internal u64 to u128 compact_to_u128
can be used.
Implementations§
source§impl CompactSpaceU64Accessor
impl CompactSpaceU64Accessor
sourcepub fn compact_to_u128(&self, compact: u32) -> u128
pub fn compact_to_u128(&self, compact: u32) -> u128
Convert a compact space value to u128
Trait Implementations§
source§impl ColumnValues for CompactSpaceU64Accessor
impl ColumnValues for CompactSpaceU64Accessor
source§fn get_row_ids_for_value_range(
&self,
value_range: RangeInclusive<u64>,
position_range: Range<u32>,
positions: &mut Vec<u32>
)
fn get_row_ids_for_value_range( &self, value_range: RangeInclusive<u64>, position_range: Range<u32>, positions: &mut Vec<u32> )
Get the row ids of values which are in the provided value range. Read more
source§fn get_vals(&self, indexes: &[u32], output: &mut [T])
fn get_vals(&self, indexes: &[u32], output: &mut [T])
Allows to push down multiple fetch calls, to avoid dynamic dispatch overhead. Read more
Auto Trait Implementations§
impl Freeze for CompactSpaceU64Accessor
impl !RefUnwindSafe for CompactSpaceU64Accessor
impl Send for CompactSpaceU64Accessor
impl Sync for CompactSpaceU64Accessor
impl Unpin for CompactSpaceU64Accessor
impl !UnwindSafe for CompactSpaceU64Accessor
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.