pub struct AggregateOptions {
pub scalar_update_factor: usize,
}Expand description
Options related to aggregate execution
See also: SessionConfig
Fields§
§scalar_update_factor: usizeSpecifies the threshold for using ScalarValues to update
accumulators during high-cardinality aggregations for each input batch.
The aggregation is considered high-cardinality if the number of affected groups
is greater than or equal to batch_size / scalar_update_factor. In such cases,
ScalarValues are utilized for updating accumulators, rather than the default
batch-slice approach. This can lead to performance improvements.
By adjusting the scalar_update_factor, you can balance the trade-off between
more efficient accumulator updates and the number of groups affected.
Trait Implementations§
source§impl Clone for AggregateOptions
impl Clone for AggregateOptions
source§fn clone(&self) -> AggregateOptions
fn clone(&self) -> AggregateOptions
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 ConfigField for AggregateOptions
impl ConfigField for AggregateOptions
source§impl Debug for AggregateOptions
impl Debug for AggregateOptions
source§impl Default for AggregateOptions
impl Default for AggregateOptions
source§fn default() -> AggregateOptions
fn default() -> AggregateOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for AggregateOptions
impl PartialEq for AggregateOptions
impl StructuralPartialEq for AggregateOptions
Auto Trait Implementations§
impl Freeze for AggregateOptions
impl RefUnwindSafe for AggregateOptions
impl Send for AggregateOptions
impl Sync for AggregateOptions
impl Unpin for AggregateOptions
impl UnwindSafe for AggregateOptions
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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