pub struct DictStrategy { /* private fields */ }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.
Implementations§
Source§impl DictStrategy
impl DictStrategy
pub fn new( codes: ArcRef<dyn LayoutStrategy>, values: ArcRef<dyn LayoutStrategy>, fallback: ArcRef<dyn LayoutStrategy>, options: DictLayoutOptions, executor: Arc<dyn TaskExecutor>, ) -> Self
Trait Implementations§
Source§impl LayoutStrategy for DictStrategy
impl LayoutStrategy for DictStrategy
fn write_stream( &self, ctx: &ArrayContext, sequence_writer: SequenceWriter, stream: SendableSequentialStream, ) -> SendableLayoutFuture
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> 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