Skip to content

Commit 6d5f832

Browse files
gatesnlwwmanning
authored andcommitted
Remove deprecated compute traits (#7231)
Signed-off-by: Nicholas Gates <nick@nickgates.com> Signed-off-by: Will Manning <will@willmanning.io>
1 parent 7698bd8 commit 6d5f832

11 files changed

Lines changed: 15 additions & 873 deletions

File tree

vortex-array/public-api.lock

Lines changed: 0 additions & 282 deletions
Original file line numberDiff line numberDiff line change
@@ -10414,270 +10414,6 @@ pub fn vortex_array::expr::Expression::zip(&self, if_true: vortex_array::expr::E
1041410414

1041510415
pub mod vortex_array::compute
1041610416

10417-
pub enum vortex_array::compute::Cost
10418-
10419-
pub vortex_array::compute::Cost::Canonicalize
10420-
10421-
pub vortex_array::compute::Cost::Negligible
10422-
10423-
pub vortex_array::compute::Cost::Specialized
10424-
10425-
impl core::clone::Clone for vortex_array::compute::Cost
10426-
10427-
pub fn vortex_array::compute::Cost::clone(&self) -> vortex_array::compute::Cost
10428-
10429-
impl core::cmp::Eq for vortex_array::compute::Cost
10430-
10431-
impl core::cmp::PartialEq for vortex_array::compute::Cost
10432-
10433-
pub fn vortex_array::compute::Cost::eq(&self, other: &vortex_array::compute::Cost) -> bool
10434-
10435-
impl core::fmt::Debug for vortex_array::compute::Cost
10436-
10437-
pub fn vortex_array::compute::Cost::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
10438-
10439-
impl core::marker::Copy for vortex_array::compute::Cost
10440-
10441-
impl core::marker::StructuralPartialEq for vortex_array::compute::Cost
10442-
10443-
pub enum vortex_array::compute::Input<'a>
10444-
10445-
pub vortex_array::compute::Input::Array(&'a dyn vortex_array::DynArray)
10446-
10447-
pub vortex_array::compute::Input::Builder(&'a mut dyn vortex_array::builders::ArrayBuilder)
10448-
10449-
pub vortex_array::compute::Input::DType(&'a vortex_array::dtype::DType)
10450-
10451-
pub vortex_array::compute::Input::Mask(&'a vortex_mask::Mask)
10452-
10453-
pub vortex_array::compute::Input::Scalar(&'a vortex_array::scalar::Scalar)
10454-
10455-
impl<'a> vortex_array::compute::Input<'a>
10456-
10457-
pub fn vortex_array::compute::Input<'a>::array(&self) -> core::option::Option<&'a dyn vortex_array::DynArray>
10458-
10459-
pub fn vortex_array::compute::Input<'a>::builder(&'a mut self) -> core::option::Option<&'a mut dyn vortex_array::builders::ArrayBuilder>
10460-
10461-
pub fn vortex_array::compute::Input<'a>::dtype(&self) -> core::option::Option<&'a vortex_array::dtype::DType>
10462-
10463-
pub fn vortex_array::compute::Input<'a>::mask(&self) -> core::option::Option<&'a vortex_mask::Mask>
10464-
10465-
pub fn vortex_array::compute::Input<'a>::scalar(&self) -> core::option::Option<&'a vortex_array::scalar::Scalar>
10466-
10467-
impl core::fmt::Debug for vortex_array::compute::Input<'_>
10468-
10469-
pub fn vortex_array::compute::Input<'_>::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
10470-
10471-
impl<'a> core::convert::From<&'a (dyn vortex_array::DynArray + 'static)> for vortex_array::compute::Input<'a>
10472-
10473-
pub fn vortex_array::compute::Input<'a>::from(value: &'a dyn vortex_array::DynArray) -> Self
10474-
10475-
impl<'a> core::convert::From<&'a alloc::sync::Arc<dyn vortex_array::DynArray>> for vortex_array::compute::Input<'a>
10476-
10477-
pub fn vortex_array::compute::Input<'a>::from(value: &'a vortex_array::ArrayRef) -> Self
10478-
10479-
impl<'a> core::convert::From<&'a vortex_array::dtype::DType> for vortex_array::compute::Input<'a>
10480-
10481-
pub fn vortex_array::compute::Input<'a>::from(value: &'a vortex_array::dtype::DType) -> Self
10482-
10483-
impl<'a> core::convert::From<&'a vortex_array::scalar::Scalar> for vortex_array::compute::Input<'a>
10484-
10485-
pub fn vortex_array::compute::Input<'a>::from(value: &'a vortex_array::scalar::Scalar) -> Self
10486-
10487-
impl<'a> core::convert::From<&'a vortex_mask::Mask> for vortex_array::compute::Input<'a>
10488-
10489-
pub fn vortex_array::compute::Input<'a>::from(value: &'a vortex_mask::Mask) -> Self
10490-
10491-
pub enum vortex_array::compute::Output
10492-
10493-
pub vortex_array::compute::Output::Array(vortex_array::ArrayRef)
10494-
10495-
pub vortex_array::compute::Output::Scalar(vortex_array::scalar::Scalar)
10496-
10497-
impl vortex_array::compute::Output
10498-
10499-
pub fn vortex_array::compute::Output::dtype(&self) -> &vortex_array::dtype::DType
10500-
10501-
pub fn vortex_array::compute::Output::len(&self) -> usize
10502-
10503-
pub fn vortex_array::compute::Output::unwrap_array(self) -> vortex_error::VortexResult<vortex_array::ArrayRef>
10504-
10505-
pub fn vortex_array::compute::Output::unwrap_scalar(self) -> vortex_error::VortexResult<vortex_array::scalar::Scalar>
10506-
10507-
impl core::convert::From<alloc::sync::Arc<dyn vortex_array::DynArray>> for vortex_array::compute::Output
10508-
10509-
pub fn vortex_array::compute::Output::from(value: vortex_array::ArrayRef) -> Self
10510-
10511-
impl core::convert::From<vortex_array::scalar::Scalar> for vortex_array::compute::Output
10512-
10513-
pub fn vortex_array::compute::Output::from(value: vortex_array::scalar::Scalar) -> Self
10514-
10515-
impl core::fmt::Debug for vortex_array::compute::Output
10516-
10517-
pub fn vortex_array::compute::Output::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
10518-
10519-
pub struct vortex_array::compute::BinaryArgs<'a, O: vortex_array::compute::Options>
10520-
10521-
pub vortex_array::compute::BinaryArgs::lhs: &'a dyn vortex_array::DynArray
10522-
10523-
pub vortex_array::compute::BinaryArgs::options: &'a O
10524-
10525-
pub vortex_array::compute::BinaryArgs::rhs: &'a dyn vortex_array::DynArray
10526-
10527-
impl<'a, O: vortex_array::compute::Options> core::convert::TryFrom<&vortex_array::compute::InvocationArgs<'a>> for vortex_array::compute::BinaryArgs<'a, O>
10528-
10529-
pub type vortex_array::compute::BinaryArgs<'a, O>::Error = vortex_error::VortexError
10530-
10531-
pub fn vortex_array::compute::BinaryArgs<'a, O>::try_from(value: &vortex_array::compute::InvocationArgs<'a>) -> core::result::Result<Self, Self::Error>
10532-
10533-
pub struct vortex_array::compute::ComputeFn
10534-
10535-
impl vortex_array::compute::ComputeFn
10536-
10537-
pub fn vortex_array::compute::ComputeFn::id(&self) -> &arcref::ArcRef<str>
10538-
10539-
pub fn vortex_array::compute::ComputeFn::invoke(&self, args: &vortex_array::compute::InvocationArgs<'_>) -> vortex_error::VortexResult<vortex_array::compute::Output>
10540-
10541-
pub fn vortex_array::compute::ComputeFn::is_elementwise(&self) -> bool
10542-
10543-
pub fn vortex_array::compute::ComputeFn::kernels(&self) -> alloc::vec::Vec<arcref::ArcRef<dyn vortex_array::compute::Kernel>>
10544-
10545-
pub fn vortex_array::compute::ComputeFn::new(id: arcref::ArcRef<str>, vtable: arcref::ArcRef<dyn vortex_array::compute::ComputeFnVTable>) -> Self
10546-
10547-
pub fn vortex_array::compute::ComputeFn::register_kernel(&self, kernel: arcref::ArcRef<dyn vortex_array::compute::Kernel>)
10548-
10549-
pub fn vortex_array::compute::ComputeFn::return_dtype(&self, args: &vortex_array::compute::InvocationArgs<'_>) -> vortex_error::VortexResult<vortex_array::dtype::DType>
10550-
10551-
pub fn vortex_array::compute::ComputeFn::return_len(&self, args: &vortex_array::compute::InvocationArgs<'_>) -> vortex_error::VortexResult<usize>
10552-
10553-
pub struct vortex_array::compute::InvocationArgs<'a>
10554-
10555-
pub vortex_array::compute::InvocationArgs::inputs: &'a [vortex_array::compute::Input<'a>]
10556-
10557-
pub vortex_array::compute::InvocationArgs::options: &'a dyn vortex_array::compute::Options
10558-
10559-
impl<'a, O: vortex_array::compute::Options> core::convert::TryFrom<&vortex_array::compute::InvocationArgs<'a>> for vortex_array::compute::BinaryArgs<'a, O>
10560-
10561-
pub type vortex_array::compute::BinaryArgs<'a, O>::Error = vortex_error::VortexError
10562-
10563-
pub fn vortex_array::compute::BinaryArgs<'a, O>::try_from(value: &vortex_array::compute::InvocationArgs<'a>) -> core::result::Result<Self, Self::Error>
10564-
10565-
impl<'a, O: vortex_array::compute::Options> core::convert::TryFrom<&vortex_array::compute::InvocationArgs<'a>> for vortex_array::compute::UnaryArgs<'a, O>
10566-
10567-
pub type vortex_array::compute::UnaryArgs<'a, O>::Error = vortex_error::VortexError
10568-
10569-
pub fn vortex_array::compute::UnaryArgs<'a, O>::try_from(value: &vortex_array::compute::InvocationArgs<'a>) -> core::result::Result<Self, Self::Error>
10570-
10571-
impl<'a> core::clone::Clone for vortex_array::compute::InvocationArgs<'a>
10572-
10573-
pub fn vortex_array::compute::InvocationArgs<'a>::clone(&self) -> vortex_array::compute::InvocationArgs<'a>
10574-
10575-
pub struct vortex_array::compute::IsConstantOpts
10576-
10577-
pub vortex_array::compute::IsConstantOpts::cost: vortex_array::compute::Cost
10578-
10579-
impl vortex_array::compute::IsConstantOpts
10580-
10581-
pub fn vortex_array::compute::IsConstantOpts::is_negligible_cost(&self) -> bool
10582-
10583-
impl core::clone::Clone for vortex_array::compute::IsConstantOpts
10584-
10585-
pub fn vortex_array::compute::IsConstantOpts::clone(&self) -> vortex_array::compute::IsConstantOpts
10586-
10587-
impl core::default::Default for vortex_array::compute::IsConstantOpts
10588-
10589-
pub fn vortex_array::compute::IsConstantOpts::default() -> Self
10590-
10591-
impl core::fmt::Debug for vortex_array::compute::IsConstantOpts
10592-
10593-
pub fn vortex_array::compute::IsConstantOpts::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
10594-
10595-
impl vortex_array::compute::Options for vortex_array::compute::IsConstantOpts
10596-
10597-
pub fn vortex_array::compute::IsConstantOpts::as_any(&self) -> &dyn core::any::Any
10598-
10599-
pub struct vortex_array::compute::MinMaxResult
10600-
10601-
pub vortex_array::compute::MinMaxResult::max: vortex_array::scalar::Scalar
10602-
10603-
pub vortex_array::compute::MinMaxResult::min: vortex_array::scalar::Scalar
10604-
10605-
impl vortex_array::aggregate_fn::fns::min_max::MinMaxResult
10606-
10607-
pub fn vortex_array::aggregate_fn::fns::min_max::MinMaxResult::from_scalar(scalar: vortex_array::scalar::Scalar) -> vortex_error::VortexResult<core::option::Option<Self>>
10608-
10609-
impl core::clone::Clone for vortex_array::aggregate_fn::fns::min_max::MinMaxResult
10610-
10611-
pub fn vortex_array::aggregate_fn::fns::min_max::MinMaxResult::clone(&self) -> vortex_array::aggregate_fn::fns::min_max::MinMaxResult
10612-
10613-
impl core::cmp::Eq for vortex_array::aggregate_fn::fns::min_max::MinMaxResult
10614-
10615-
impl core::cmp::PartialEq for vortex_array::aggregate_fn::fns::min_max::MinMaxResult
10616-
10617-
pub fn vortex_array::aggregate_fn::fns::min_max::MinMaxResult::eq(&self, other: &vortex_array::aggregate_fn::fns::min_max::MinMaxResult) -> bool
10618-
10619-
impl core::fmt::Debug for vortex_array::aggregate_fn::fns::min_max::MinMaxResult
10620-
10621-
pub fn vortex_array::aggregate_fn::fns::min_max::MinMaxResult::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
10622-
10623-
impl core::marker::StructuralPartialEq for vortex_array::aggregate_fn::fns::min_max::MinMaxResult
10624-
10625-
pub struct vortex_array::compute::UnaryArgs<'a, O: vortex_array::compute::Options>
10626-
10627-
pub vortex_array::compute::UnaryArgs::array: &'a dyn vortex_array::DynArray
10628-
10629-
pub vortex_array::compute::UnaryArgs::options: &'a O
10630-
10631-
impl<'a, O: vortex_array::compute::Options> core::convert::TryFrom<&vortex_array::compute::InvocationArgs<'a>> for vortex_array::compute::UnaryArgs<'a, O>
10632-
10633-
pub type vortex_array::compute::UnaryArgs<'a, O>::Error = vortex_error::VortexError
10634-
10635-
pub fn vortex_array::compute::UnaryArgs<'a, O>::try_from(value: &vortex_array::compute::InvocationArgs<'a>) -> core::result::Result<Self, Self::Error>
10636-
10637-
pub trait vortex_array::compute::ComputeFnVTable: 'static + core::marker::Send + core::marker::Sync
10638-
10639-
pub fn vortex_array::compute::ComputeFnVTable::invoke(&self, args: &vortex_array::compute::InvocationArgs<'_>, kernels: &[arcref::ArcRef<dyn vortex_array::compute::Kernel>]) -> vortex_error::VortexResult<vortex_array::compute::Output>
10640-
10641-
pub fn vortex_array::compute::ComputeFnVTable::is_elementwise(&self) -> bool
10642-
10643-
pub fn vortex_array::compute::ComputeFnVTable::return_dtype(&self, args: &vortex_array::compute::InvocationArgs<'_>) -> vortex_error::VortexResult<vortex_array::dtype::DType>
10644-
10645-
pub fn vortex_array::compute::ComputeFnVTable::return_len(&self, args: &vortex_array::compute::InvocationArgs<'_>) -> vortex_error::VortexResult<usize>
10646-
10647-
pub trait vortex_array::compute::Kernel: 'static + core::marker::Send + core::marker::Sync + core::fmt::Debug
10648-
10649-
pub fn vortex_array::compute::Kernel::invoke(&self, args: &vortex_array::compute::InvocationArgs<'_>) -> vortex_error::VortexResult<core::option::Option<vortex_array::compute::Output>>
10650-
10651-
pub trait vortex_array::compute::Options: 'static
10652-
10653-
pub fn vortex_array::compute::Options::as_any(&self) -> &dyn core::any::Any
10654-
10655-
impl vortex_array::compute::Options for ()
10656-
10657-
pub fn ()::as_any(&self) -> &dyn core::any::Any
10658-
10659-
impl vortex_array::compute::Options for vortex_array::compute::IsConstantOpts
10660-
10661-
pub fn vortex_array::compute::IsConstantOpts::as_any(&self) -> &dyn core::any::Any
10662-
10663-
impl vortex_array::compute::Options for vortex_array::scalar_fn::fns::between::BetweenOptions
10664-
10665-
pub fn vortex_array::scalar_fn::fns::between::BetweenOptions::as_any(&self) -> &dyn core::any::Any
10666-
10667-
pub fn vortex_array::compute::is_constant(array: &vortex_array::ArrayRef) -> vortex_error::VortexResult<core::option::Option<bool>>
10668-
10669-
pub fn vortex_array::compute::is_constant_opts(array: &vortex_array::ArrayRef, _opts: &vortex_array::compute::IsConstantOpts) -> vortex_error::VortexResult<core::option::Option<bool>>
10670-
10671-
pub fn vortex_array::compute::is_sorted(array: &vortex_array::ArrayRef) -> vortex_error::VortexResult<core::option::Option<bool>>
10672-
10673-
pub fn vortex_array::compute::is_strict_sorted(array: &vortex_array::ArrayRef) -> vortex_error::VortexResult<core::option::Option<bool>>
10674-
10675-
pub fn vortex_array::compute::min_max(array: &vortex_array::ArrayRef) -> vortex_error::VortexResult<core::option::Option<vortex_array::aggregate_fn::fns::min_max::MinMaxResult>>
10676-
10677-
pub fn vortex_array::compute::nan_count(array: &vortex_array::ArrayRef) -> vortex_error::VortexResult<usize>
10678-
10679-
pub fn vortex_array::compute::sum(array: &vortex_array::ArrayRef) -> vortex_error::VortexResult<vortex_array::scalar::Scalar>
10680-
1068110417
pub mod vortex_array::display
1068210418

1068310419
pub enum vortex_array::display::DisplayOptions
@@ -11406,10 +11142,6 @@ pub type vortex_array::dtype::DType::Target<'a> = vortex_flatbuffers::dtype::DTy
1140611142

1140711143
pub fn vortex_array::dtype::DType::write_flatbuffer<'fb>(&self, fbb: &mut flatbuffers::builder::FlatBufferBuilder<'fb>) -> vortex_error::VortexResult<flatbuffers::primitives::WIPOffset<Self::Target>>
1140811144

11409-
impl<'a> core::convert::From<&'a vortex_array::dtype::DType> for vortex_array::compute::Input<'a>
11410-
11411-
pub fn vortex_array::compute::Input<'a>::from(value: &'a vortex_array::dtype::DType) -> Self
11412-
1141311145
#[repr(u8)] pub enum vortex_array::dtype::DecimalType
1141411146

1141511147
pub vortex_array::dtype::DecimalType::I128 = 4
@@ -17110,10 +16842,6 @@ impl core::convert::From<vortex_array::scalar::PrimitiveScalar<'_>> for vortex_a
1711016842

1711116843
pub fn vortex_array::scalar::Scalar::from(ps: vortex_array::scalar::PrimitiveScalar<'_>) -> Self
1711216844

17113-
impl core::convert::From<vortex_array::scalar::Scalar> for vortex_array::compute::Output
17114-
17115-
pub fn vortex_array::compute::Output::from(value: vortex_array::scalar::Scalar) -> Self
17116-
1711716845
impl core::convert::From<vortex_buffer::buffer::Buffer<u8>> for vortex_array::scalar::Scalar
1711816846

1711916847
pub fn vortex_array::scalar::Scalar::from(value: vortex_buffer::ByteBuffer) -> Self
@@ -17382,10 +17110,6 @@ pub type alloc::vec::Vec<T>::Error = vortex_error::VortexError
1738217110

1738317111
pub fn alloc::vec::Vec<T>::try_from(value: &'a vortex_array::scalar::Scalar) -> core::result::Result<Self, Self::Error>
1738417112

17385-
impl<'a> core::convert::From<&'a vortex_array::scalar::Scalar> for vortex_array::compute::Input<'a>
17386-
17387-
pub fn vortex_array::compute::Input<'a>::from(value: &'a vortex_array::scalar::Scalar) -> Self
17388-
1738917113
impl<'a> core::convert::TryFrom<&'a vortex_array::scalar::Scalar> for alloc::string::String
1739017114

1739117115
pub type alloc::string::String::Error = vortex_error::VortexError
@@ -17794,10 +17518,6 @@ pub fn vortex_array::scalar_fn::fns::between::BetweenOptions::hash<__H: core::ha
1779417518

1779517519
impl core::marker::StructuralPartialEq for vortex_array::scalar_fn::fns::between::BetweenOptions
1779617520

17797-
impl vortex_array::compute::Options for vortex_array::scalar_fn::fns::between::BetweenOptions
17798-
17799-
pub fn vortex_array::scalar_fn::fns::between::BetweenOptions::as_any(&self) -> &dyn core::any::Any
17800-
1780117521
pub struct vortex_array::scalar_fn::fns::between::BetweenReduceAdaptor<V>(pub V)
1780217522

1780317523
impl<V: core::default::Default> core::default::Default for vortex_array::scalar_fn::fns::between::BetweenReduceAdaptor<V>
@@ -24360,8 +24080,6 @@ pub macro vortex_array::match_each_unsigned_integer_ptype!
2436024080

2436124081
pub macro vortex_array::match_smallest_offset_type!
2436224082

24363-
pub macro vortex_array::register_kernel!
24364-
2436524083
pub macro vortex_array::require_child!
2436624084

2436724085
pub macro vortex_array::vtable!

vortex-array/src/arrays/primitive/array/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ pub(super) const SLOT_NAMES: [&str; NUM_SLOTS] = ["validity"];
5555
/// ```
5656
/// # fn main() -> vortex_error::VortexResult<()> {
5757
/// use vortex_array::arrays::PrimitiveArray;
58-
/// use vortex_array::compute::sum;
5958
///
6059
/// // Create from iterator using FromIterator impl
6160
/// let array: PrimitiveArray = [1i32, 2, 3, 4, 5].into_iter().collect();
@@ -67,10 +66,6 @@ pub(super) const SLOT_NAMES: [&str; NUM_SLOTS] = ["validity"];
6766
/// let value = sliced.scalar_at(0).unwrap();
6867
/// assert_eq!(value, 2i32.into());
6968
///
70-
/// // Convert into a type-erased array that can be passed to compute functions.
71-
/// use vortex_array::IntoArray;
72-
/// let summed = sum(&sliced.into_array()).unwrap().as_primitive().typed_value::<i64>().unwrap();
73-
/// assert_eq!(summed, 5i64);
7469
/// # Ok(())
7570
/// # }
7671
/// ```

vortex-array/src/compute/arbitrary.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)