pub struct DictStrategy {
pub options: DictLayoutOptions,
pub codes: ArcRef<dyn LayoutStrategy>,
pub values: ArcRef<dyn LayoutStrategy>,
pub fallback: ArcRef<dyn LayoutStrategy>,
}Expand description
A layout strategy that encodes chunk into values and codes, if found appropriate by the btrblocks compressor. Current implementation only checks the first chunk to decide whether to apply dict layout and encodes chunks into dictionaries. When the dict constraints are hit, a new dictionary is created.
Fields§
§options: DictLayoutOptions§codes: ArcRef<dyn LayoutStrategy>§values: ArcRef<dyn LayoutStrategy>§fallback: ArcRef<dyn LayoutStrategy>Trait Implementations§
Source§impl Clone for DictStrategy
impl Clone for DictStrategy
Source§fn clone(&self) -> DictStrategy
fn clone(&self) -> DictStrategy
Returns a copy 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 LayoutStrategy for DictStrategy
impl LayoutStrategy for DictStrategy
fn new_writer( &self, ctx: &ArrayContext, dtype: &DType, ) -> VortexResult<Box<dyn LayoutWriter>>
Auto Trait Implementations§
impl Freeze for DictStrategy
impl !RefUnwindSafe for DictStrategy
impl Send for DictStrategy
impl Sync for DictStrategy
impl Unpin for DictStrategy
impl !UnwindSafe for DictStrategy
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more