@@ -54,35 +54,33 @@ pub fn vortex_array::aggregate_fn::fns::sum::Sum::fmt(&self, f: &mut core::fmt::
5454
5555impl vortex_array::aggregate_fn::AggregateFnVTable for vortex_array::aggregate_fn::fns::sum::Sum
5656
57- pub type vortex_array::aggregate_fn::fns::sum::Sum::GroupState = vortex_array::aggregate_fn::fns::sum::SumGroupState
58-
5957pub type vortex_array::aggregate_fn::fns::sum::Sum::Options = vortex_array::aggregate_fn::fns::sum::SumOptions
6058
61- pub fn vortex_array::aggregate_fn::fns::sum::Sum::deserialize(&self, _metadata: &[u8], _session: &vortex_session::VortexSession) -> vortex_error::VortexResult<Self::Options>
59+ pub type vortex_array::aggregate_fn::fns::sum::Sum::Partial = vortex_array::aggregate_fn::fns::sum::SumPartial
6260
63- pub fn vortex_array::aggregate_fn::fns::sum::Sum::finalize (&self, states: vortex_array::ArrayRef ) -> vortex_error::VortexResult<vortex_array::ArrayRef >
61+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::accumulate (&self, partial: &mut Self::Partial, batch: & vortex_array::Canonical, _ctx: &mut vortex_array::ExecutionCtx ) -> vortex_error::VortexResult<() >
6462
65- pub fn vortex_array::aggregate_fn::fns::sum::Sum::finalize_scalar (&self, state: vortex_array::scalar::Scalar) -> vortex_error::VortexResult<vortex_array::scalar::Scalar >
63+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::combine_partials (&self, partial: &mut Self::Partial, other: vortex_array::scalar::Scalar) -> vortex_error::VortexResult<() >
6664
67- pub fn vortex_array::aggregate_fn::fns::sum::Sum::id (&self) -> vortex_array::aggregate_fn::AggregateFnId
65+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::deserialize (&self, _metadata: &[u8], _session: &vortex_session::VortexSession ) -> vortex_error::VortexResult<Self::Options>
6866
69- pub fn vortex_array::aggregate_fn::fns::sum::Sum::return_dtype (&self, _options : &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<vortex_array::dtype::DType >
67+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::empty_partial (&self, options : &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<Self::Partial >
7068
71- pub fn vortex_array::aggregate_fn::fns::sum::Sum::serialize (&self, options: &Self::Options ) -> vortex_error::VortexResult<core::option::Option<alloc::vec::Vec<u8>> >
69+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::finalize (&self, partials: vortex_array::ArrayRef ) -> vortex_error::VortexResult<vortex_array::ArrayRef >
7270
73- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_accumulate (&self, state: &mut Self::GroupState, batch: & vortex_array::Canonical, _ctx: &mut vortex_array::ExecutionCtx ) -> vortex_error::VortexResult<() >
71+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::finalize_scalar (&self, partial: vortex_array::scalar::Scalar ) -> vortex_error::VortexResult<vortex_array::scalar::Scalar >
7472
75- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_dtype (&self, options : &Self::Options, input_dtype: &vortex_array::dtype::DType ) -> vortex_error::VortexResult<vortex_array::dtype::DType >
73+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::flush (&self, partial : &mut Self::Partial ) -> vortex_error::VortexResult<vortex_array::scalar::Scalar >
7674
77- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_flush (&self, state: &mut Self::GroupState ) -> vortex_error::VortexResult< vortex_array::scalar::Scalar>
75+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::id (&self) -> vortex_array::aggregate_fn::AggregateFnId
7876
79- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_is_saturated (&self, state : &Self::GroupState ) -> bool
77+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::is_saturated (&self, partial : &Self::Partial ) -> bool
8078
81- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_merge (&self, state : &mut Self::GroupState, other: vortex_array::scalar::Scalar ) -> vortex_error::VortexResult<() >
79+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::partial_dtype (&self, options : &Self::Options, input_dtype: & vortex_array::dtype::DType ) -> vortex_error::VortexResult<vortex_array::dtype::DType >
8280
83- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_new (&self, options : &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<Self::GroupState >
81+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::return_dtype (&self, _options : &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<vortex_array::dtype::DType >
8482
85- pub struct vortex_array::aggregate_fn::fns::sum::SumGroupState
83+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::serialize(&self, options: &Self::Options) -> vortex_error::VortexResult<core::option::Option<alloc::vec::Vec<u8>>>
8684
8785pub struct vortex_array::aggregate_fn::fns::sum::SumOptions
8886
@@ -110,6 +108,8 @@ pub fn vortex_array::aggregate_fn::fns::sum::SumOptions::hash<__H: core::hash::H
110108
111109impl core::marker::StructuralPartialEq for vortex_array::aggregate_fn::fns::sum::SumOptions
112110
111+ pub struct vortex_array::aggregate_fn::fns::sum::SumPartial
112+
113113pub mod vortex_array::aggregate_fn::session
114114
115115pub struct vortex_array::aggregate_fn::session::AggregateFnSession
@@ -294,64 +294,64 @@ pub fn V::id(&self) -> arcref::ArcRef<str>
294294
295295pub trait vortex_array::aggregate_fn::AggregateFnVTable: 'static + core::marker::Sized + core::clone::Clone + core::marker::Send + core::marker::Sync
296296
297- pub type vortex_array::aggregate_fn::AggregateFnVTable::GroupState: 'static + core::marker::Send
298-
299297pub type vortex_array::aggregate_fn::AggregateFnVTable::Options: 'static + core::marker::Send + core::marker::Sync + core::clone::Clone + core::fmt::Debug + core::fmt::Display + core::cmp::PartialEq + core::cmp::Eq + core::hash::Hash
300298
299+ pub type vortex_array::aggregate_fn::AggregateFnVTable::Partial: 'static + core::marker::Send
300+
301+ pub fn vortex_array::aggregate_fn::AggregateFnVTable::accumulate(&self, state: &mut Self::Partial, batch: &vortex_array::Canonical, ctx: &mut vortex_array::ExecutionCtx) -> vortex_error::VortexResult<()>
302+
303+ pub fn vortex_array::aggregate_fn::AggregateFnVTable::combine_partials(&self, partial: &mut Self::Partial, other: vortex_array::scalar::Scalar) -> vortex_error::VortexResult<()>
304+
301305pub fn vortex_array::aggregate_fn::AggregateFnVTable::deserialize(&self, _metadata: &[u8], _session: &vortex_session::VortexSession) -> vortex_error::VortexResult<Self::Options>
302306
307+ pub fn vortex_array::aggregate_fn::AggregateFnVTable::empty_partial(&self, options: &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<Self::Partial>
308+
303309pub fn vortex_array::aggregate_fn::AggregateFnVTable::finalize(&self, states: vortex_array::ArrayRef) -> vortex_error::VortexResult<vortex_array::ArrayRef>
304310
305311pub fn vortex_array::aggregate_fn::AggregateFnVTable::finalize_scalar(&self, state: vortex_array::scalar::Scalar) -> vortex_error::VortexResult<vortex_array::scalar::Scalar>
306312
313+ pub fn vortex_array::aggregate_fn::AggregateFnVTable::flush(&self, partial: &mut Self::Partial) -> vortex_error::VortexResult<vortex_array::scalar::Scalar>
314+
307315pub fn vortex_array::aggregate_fn::AggregateFnVTable::id(&self) -> vortex_array::aggregate_fn::AggregateFnId
308316
317+ pub fn vortex_array::aggregate_fn::AggregateFnVTable::is_saturated(&self, state: &Self::Partial) -> bool
318+
319+ pub fn vortex_array::aggregate_fn::AggregateFnVTable::partial_dtype(&self, options: &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<vortex_array::dtype::DType>
320+
309321pub fn vortex_array::aggregate_fn::AggregateFnVTable::return_dtype(&self, options: &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<vortex_array::dtype::DType>
310322
311323pub fn vortex_array::aggregate_fn::AggregateFnVTable::serialize(&self, options: &Self::Options) -> vortex_error::VortexResult<core::option::Option<alloc::vec::Vec<u8>>>
312324
313- pub fn vortex_array::aggregate_fn::AggregateFnVTable::state_accumulate(&self, state: &mut Self::GroupState, batch: & vortex_array::Canonical, ctx: &mut vortex_array::ExecutionCtx) -> vortex_error::VortexResult<()>
325+ impl vortex_array::aggregate_fn::AggregateFnVTable for vortex_array::aggregate_fn::fns::sum::Sum
314326
315- pub fn vortex_array::aggregate_fn::AggregateFnVTable::state_dtype(&self, options: &Self:: Options, input_dtype: & vortex_array::dtype::DType) -> vortex_error::VortexResult<vortex_array::dtype::DType>
327+ pub type vortex_array::aggregate_fn::fns::sum::Sum:: Options = vortex_array::aggregate_fn::fns::sum::SumOptions
316328
317- pub fn vortex_array::aggregate_fn::AggregateFnVTable::state_flush(&self, state: &mut Self::GroupState) -> vortex_error::VortexResult<vortex_array::scalar::Scalar>
329+ pub type vortex_array::aggregate_fn::fns::sum::Sum::Partial = vortex_array::aggregate_fn::fns::sum::SumPartial
318330
319- pub fn vortex_array::aggregate_fn::AggregateFnVTable::state_is_saturated (&self, state : &Self::GroupState ) -> bool
331+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::accumulate (&self, partial : &mut Self::Partial, batch: &vortex_array::Canonical, _ctx: &mut vortex_array::ExecutionCtx ) -> vortex_error::VortexResult<()>
320332
321- pub fn vortex_array::aggregate_fn::AggregateFnVTable::state_merge (&self, state : &mut Self::GroupState, partial : vortex_array::scalar::Scalar) -> vortex_error::VortexResult<()>
333+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::combine_partials (&self, partial : &mut Self::Partial, other : vortex_array::scalar::Scalar) -> vortex_error::VortexResult<()>
322334
323- pub fn vortex_array::aggregate_fn::AggregateFnVTable::state_new (&self, options : &Self::Options, input_dtype : &vortex_array::dtype::DType ) -> vortex_error::VortexResult<Self::GroupState >
335+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::deserialize (&self, _metadata : &[u8], _session : &vortex_session::VortexSession ) -> vortex_error::VortexResult<Self::Options >
324336
325- impl vortex_array::aggregate_fn::AggregateFnVTable for vortex_array::aggregate_fn::fns::sum::Sum
337+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::empty_partial(&self, options: &Self::Options, input_dtype: & vortex_array::dtype::DType) -> vortex_error::VortexResult<Self::Partial>
326338
327- pub type vortex_array::aggregate_fn::fns::sum::Sum::GroupState = vortex_array::aggregate_fn::fns::sum::SumGroupState
339+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::finalize(&self, partials: vortex_array::ArrayRef) -> vortex_error::VortexResult<vortex_array::ArrayRef>
328340
329- pub type vortex_array::aggregate_fn::fns::sum::Sum::Options = vortex_array::aggregate_fn::fns::sum::SumOptions
341+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::finalize_scalar(&self, partial: vortex_array::scalar::Scalar) -> vortex_error::VortexResult<vortex_array::scalar::Scalar>
330342
331- pub fn vortex_array::aggregate_fn::fns::sum::Sum::deserialize (&self, _metadata : &[u8], _session: &vortex_session::VortexSession ) -> vortex_error::VortexResult<Self::Options >
343+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::flush (&self, partial : &mut Self::Partial ) -> vortex_error::VortexResult<vortex_array::scalar::Scalar >
332344
333- pub fn vortex_array::aggregate_fn::fns::sum::Sum::finalize (&self, states: vortex_array::ArrayRef ) -> vortex_error::VortexResult<vortex_array::ArrayRef>
345+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::id (&self) -> vortex_array::aggregate_fn::AggregateFnId
334346
335- pub fn vortex_array::aggregate_fn::fns::sum::Sum::finalize_scalar (&self, state: vortex_array::scalar::Scalar ) -> vortex_error::VortexResult<vortex_array::scalar::Scalar>
347+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::is_saturated (&self, partial: &Self::Partial ) -> bool
336348
337- pub fn vortex_array::aggregate_fn::fns::sum::Sum::id (&self) -> vortex_array::aggregate_fn::AggregateFnId
349+ pub fn vortex_array::aggregate_fn::fns::sum::Sum::partial_dtype (&self, options: &Self::Options, input_dtype: &vortex_array::dtype::DType ) -> vortex_error::VortexResult< vortex_array::dtype::DType>
338350
339351pub fn vortex_array::aggregate_fn::fns::sum::Sum::return_dtype(&self, _options: &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<vortex_array::dtype::DType>
340352
341353pub fn vortex_array::aggregate_fn::fns::sum::Sum::serialize(&self, options: &Self::Options) -> vortex_error::VortexResult<core::option::Option<alloc::vec::Vec<u8>>>
342354
343- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_accumulate(&self, state: &mut Self::GroupState, batch: &vortex_array::Canonical, _ctx: &mut vortex_array::ExecutionCtx) -> vortex_error::VortexResult<()>
344-
345- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_dtype(&self, options: &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<vortex_array::dtype::DType>
346-
347- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_flush(&self, state: &mut Self::GroupState) -> vortex_error::VortexResult<vortex_array::scalar::Scalar>
348-
349- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_is_saturated(&self, state: &Self::GroupState) -> bool
350-
351- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_merge(&self, state: &mut Self::GroupState, other: vortex_array::scalar::Scalar) -> vortex_error::VortexResult<()>
352-
353- pub fn vortex_array::aggregate_fn::fns::sum::Sum::state_new(&self, options: &Self::Options, input_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<Self::GroupState>
354-
355355pub trait vortex_array::aggregate_fn::AggregateFnVTableExt: vortex_array::aggregate_fn::AggregateFnVTable
356356
357357pub fn vortex_array::aggregate_fn::AggregateFnVTableExt::bind(&self, options: Self::Options) -> vortex_array::aggregate_fn::AggregateFnRef
0 commit comments