pub struct CompressingStrategy<S> { /* private fields */ }Expand description
A layout writer that compresses chunks.
Implementations§
Source§impl<S: LayoutStrategy> CompressingStrategy<S>
impl<S: LayoutStrategy> CompressingStrategy<S>
Sourcepub fn new_btrblocks(
child: S,
executor: Arc<dyn TaskExecutor>,
parallelism: usize,
) -> Self
pub fn new_btrblocks( child: S, executor: Arc<dyn TaskExecutor>, parallelism: usize, ) -> Self
Create a new writer that uses the BtrBlocks-style cascading compressor to compress chunks.
This provides a good balance between decoding speed and small file size.
Sourcepub fn new_opaque<C: CompressorPlugin>(
child: S,
compressor: C,
executor: Arc<dyn TaskExecutor>,
parallelism: usize,
) -> Self
pub fn new_opaque<C: CompressorPlugin>( child: S, compressor: C, executor: Arc<dyn TaskExecutor>, parallelism: usize, ) -> Self
Create a new compressor from a plugin interface.
Trait Implementations§
Source§impl<S: Clone> Clone for CompressingStrategy<S>
impl<S: Clone> Clone for CompressingStrategy<S>
Source§fn clone(&self) -> CompressingStrategy<S>
fn clone(&self) -> CompressingStrategy<S>
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<S> LayoutStrategy for CompressingStrategy<S>where
S: LayoutStrategy,
impl<S> LayoutStrategy for CompressingStrategy<S>where
S: LayoutStrategy,
Source§fn write_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ArrayContext,
sequence_writer: SequenceWriter,
stream: SendableSequentialStream,
) -> Pin<Box<dyn Future<Output = VortexResult<LayoutRef>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ArrayContext,
sequence_writer: SequenceWriter,
stream: SendableSequentialStream,
) -> Pin<Box<dyn Future<Output = VortexResult<LayoutRef>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<S> Freeze for CompressingStrategy<S>where
S: Freeze,
impl<S> !RefUnwindSafe for CompressingStrategy<S>
impl<S> Send for CompressingStrategy<S>where
S: Send,
impl<S> Sync for CompressingStrategy<S>where
S: Sync,
impl<S> Unpin for CompressingStrategy<S>where
S: Unpin,
impl<S> !UnwindSafe for CompressingStrategy<S>
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