pub struct MinAccumulator { /* private fields */ }
Expand description
An accumulator to compute the minimum value
Implementations
Trait Implementations
sourceimpl Accumulator for MinAccumulator
impl Accumulator for MinAccumulator
sourcefn state(&self) -> Result<Vec<ScalarValue>>
fn state(&self) -> Result<Vec<ScalarValue>>
Returns the state of the accumulator at the end of the accumulation.
sourcefn update_batch(&mut self, values: &[ArrayRef]) -> Result<()>
fn update_batch(&mut self, values: &[ArrayRef]) -> Result<()>
updates the accumulator’s state from a vector of arrays.
sourcefn merge_batch(&mut self, states: &[ArrayRef]) -> Result<()>
fn merge_batch(&mut self, states: &[ArrayRef]) -> Result<()>
updates the accumulator’s state from a vector of states.
sourcefn evaluate(&self) -> Result<ScalarValue>
fn evaluate(&self) -> Result<ScalarValue>
returns its value based on its current state.
Auto Trait Implementations
impl RefUnwindSafe for MinAccumulator
impl Send for MinAccumulator
impl Sync for MinAccumulator
impl Unpin for MinAccumulator
impl UnwindSafe for MinAccumulator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more