Struct rustis::commands::TDigestMergeOptions
source · pub struct TDigestMergeOptions { /* private fields */ }
Available on crate feature
redis-bloom
only.Expand description
Options for the tdigest_merge
command.
Implementations§
source§impl TDigestMergeOptions
impl TDigestMergeOptions
sourcepub fn compression(self, compression: usize) -> Self
pub fn compression(self, compression: usize) -> Self
controllable tradeoff between accuracy and memory consumption.
100 is a common value for normal uses.
1000 is more accurate.
If no value is passed by default the compression will be 100.
For more information on scaling of accuracy versus the compression parameter
see The t-digest: Efficient estimates of distributions
.
When COMPRESSION is not specified:
Trait Implementations§
source§impl Default for TDigestMergeOptions
impl Default for TDigestMergeOptions
source§fn default() -> TDigestMergeOptions
fn default() -> TDigestMergeOptions
Returns the “default value” for a type. Read more
source§impl ToArgs for TDigestMergeOptions
impl ToArgs for TDigestMergeOptions
source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for TDigestMergeOptions
impl RefUnwindSafe for TDigestMergeOptions
impl Send for TDigestMergeOptions
impl Sync for TDigestMergeOptions
impl Unpin for TDigestMergeOptions
impl UnwindSafe for TDigestMergeOptions
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