Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions vortex-array/src/aggregate_fn/accumulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ impl<V: AggregateFnVTable> Accumulator<V> {
self.vtable.empty_partial(self.dtypes.args(&self.options))
}

/// Take the accumulated partial state, leaving the accumulator empty.
///
/// Returns `None` if nothing was accumulated.
pub(crate) fn take_partial(&mut self) -> Option<V::Partial> {
self.partial.take()
}

fn ensure_partial(&mut self) -> VortexResult<()> {
if self.partial.is_none() {
self.partial = Some(self.empty_partial()?);
Expand Down
3 changes: 3 additions & 0 deletions vortex-array/src/aggregate_fn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ pub use typed::*;
mod erased;
pub use erased::*;

mod storage_pushdown;
pub use storage_pushdown::*;

mod options;
pub use options::*;

Expand Down
Loading
Loading