@@ -32,9 +32,9 @@ pub type vortex_alp::ALP::OperationsVTable = vortex_alp::ALP
3232
3333pub type vortex_alp::ALP::ValidityVTable = vortex_array::array::vtable::validity::ValidityVTableFromChild
3434
35- pub fn vortex_alp::ALP::array_eq(array: vortex_array::array::view::ArrayView<'_, Self>, other: vortex_array::array::view::ArrayView<'_, Self>, precision : vortex_array::hash::Precision) -> bool
35+ pub fn vortex_alp::ALP::array_eq(data: &vortex_alp::ALPData, other: &vortex_alp::ALPData, _precision : vortex_array::hash::Precision) -> bool
3636
37- pub fn vortex_alp::ALP::array_hash<H: core::hash::Hasher>(array: vortex_array::array::view::ArrayView<'_, Self> , state: &mut H, precision: vortex_array::hash::Precision)
37+ pub fn vortex_alp::ALP::array_hash<H: core::hash::Hasher>(data: &vortex_alp::ALPData , state: &mut H, precision: vortex_array::hash::Precision)
3838
3939pub fn vortex_alp::ALP::buffer(_array: vortex_array::array::view::ArrayView<'_, Self>, idx: usize) -> vortex_array::buffer::BufferHandle
4040
@@ -166,9 +166,9 @@ pub type vortex_alp::ALPRD::OperationsVTable = vortex_alp::ALPRD
166166
167167pub type vortex_alp::ALPRD::ValidityVTable = vortex_array::array::vtable::validity::ValidityVTableFromChild
168168
169- pub fn vortex_alp::ALPRD::array_eq(array: vortex_array::array::view::ArrayView<'_, Self>, other: vortex_array::array::view::ArrayView<'_, Self> , precision: vortex_array::hash::Precision) -> bool
169+ pub fn vortex_alp::ALPRD::array_eq(data: &vortex_alp::ALPRDData, other: &vortex_alp::ALPRDData , precision: vortex_array::hash::Precision) -> bool
170170
171- pub fn vortex_alp::ALPRD::array_hash<H: core::hash::Hasher>(array: vortex_array::array::view::ArrayView<'_, Self> , state: &mut H, precision: vortex_array::hash::Precision)
171+ pub fn vortex_alp::ALPRD::array_hash<H: core::hash::Hasher>(data: &vortex_alp::ALPRDData , state: &mut H, precision: vortex_array::hash::Precision)
172172
173173pub fn vortex_alp::ALPRD::buffer(_array: vortex_array::array::view::ArrayView<'_, Self>, idx: usize) -> vortex_array::buffer::BufferHandle
174174
@@ -330,47 +330,21 @@ pub fn vortex_alp::RDEncoder::from_parts(right_bit_width: u8, codes: alloc::vec:
330330
331331pub fn vortex_alp::RDEncoder::new<T>(sample: &[T]) -> Self where T: vortex_alp::ALPRDFloat + vortex_array::dtype::ptype::NativePType, <T as vortex_alp::ALPRDFloat>::UINT: vortex_array::dtype::ptype::NativePType
332332
333- pub trait vortex_alp::ALPArrayExt
334-
335- pub fn vortex_alp::ALPArrayExt::alp_data(&self) -> &vortex_alp::ALPData
336-
337- pub fn vortex_alp::ALPArrayExt::alp_len(&self) -> usize
338-
339- pub fn vortex_alp::ALPArrayExt::as_slots(&self) -> &[core::option::Option<vortex_array::array::erased::ArrayRef>]
333+ pub trait vortex_alp::ALPArrayExt: vortex_array::array::typed::TypedArrayRef<vortex_alp::ALP>
340334
341335pub fn vortex_alp::ALPArrayExt::encoded(&self) -> &vortex_array::array::erased::ArrayRef
342336
343337pub fn vortex_alp::ALPArrayExt::exponents(&self) -> vortex_alp::Exponents
344338
345339pub fn vortex_alp::ALPArrayExt::patches(&self) -> core::option::Option<vortex_array::patches::Patches>
346340
347- impl vortex_alp::ALPArrayExt for vortex_array::array::typed::Array<vortex_alp::ALP>
348-
349- pub fn vortex_array::array::typed::Array<vortex_alp::ALP>::alp_data(&self) -> &vortex_alp::ALPData
350-
351- pub fn vortex_array::array::typed::Array<vortex_alp::ALP>::alp_len(&self) -> usize
352-
353- pub fn vortex_array::array::typed::Array<vortex_alp::ALP>::as_slots(&self) -> &[core::option::Option<vortex_array::array::erased::ArrayRef>]
354-
355- pub fn vortex_array::array::typed::Array<vortex_alp::ALP>::encoded(&self) -> &vortex_array::array::erased::ArrayRef
356-
357- pub fn vortex_array::array::typed::Array<vortex_alp::ALP>::exponents(&self) -> vortex_alp::Exponents
358-
359- pub fn vortex_array::array::typed::Array<vortex_alp::ALP>::patches(&self) -> core::option::Option<vortex_array::patches::Patches>
360-
361- impl vortex_alp::ALPArrayExt for vortex_array::array::view::ArrayView<'_, vortex_alp::ALP>
362-
363- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALP>::alp_data(&self) -> &vortex_alp::ALPData
364-
365- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALP>::alp_len(&self) -> usize
366-
367- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALP>::as_slots(&self) -> &[core::option::Option<vortex_array::array::erased::ArrayRef>]
341+ impl<T: vortex_array::array::typed::TypedArrayRef<vortex_alp::ALP>> vortex_alp::ALPArrayExt for T
368342
369- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALP> ::encoded(&self) -> &vortex_array::array::erased::ArrayRef
343+ pub fn T ::encoded(&self) -> &vortex_array::array::erased::ArrayRef
370344
371- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALP> ::exponents(&self) -> vortex_alp::Exponents
345+ pub fn T ::exponents(&self) -> vortex_alp::Exponents
372346
373- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALP> ::patches(&self) -> core::option::Option<vortex_array::patches::Patches>
347+ pub fn T ::patches(&self) -> core::option::Option<vortex_array::patches::Patches>
374348
375349pub trait vortex_alp::ALPArrayOwnedExt
376350
@@ -512,11 +486,7 @@ pub fn f64::find_best_exponents(values: &[Self]) -> vortex_alp::Exponents
512486
513487pub fn f64::from_int(n: Self::ALPInt) -> Self
514488
515- pub trait vortex_alp::ALPRDArrayExt
516-
517- pub fn vortex_alp::ALPRDArrayExt::alprd_data(&self) -> &vortex_alp::ALPRDData
518-
519- pub fn vortex_alp::ALPRDArrayExt::alprd_slots(&self) -> &[core::option::Option<vortex_array::array::erased::ArrayRef>]
489+ pub trait vortex_alp::ALPRDArrayExt: vortex_array::array::typed::TypedArrayRef<vortex_alp::ALPRD>
520490
521491pub fn vortex_alp::ALPRDArrayExt::left_parts(&self) -> &vortex_array::array::erased::ArrayRef
522492
@@ -528,37 +498,17 @@ pub fn vortex_alp::ALPRDArrayExt::right_bit_width(&self) -> u8
528498
529499pub fn vortex_alp::ALPRDArrayExt::right_parts(&self) -> &vortex_array::array::erased::ArrayRef
530500
531- impl vortex_alp::ALPRDArrayExt for vortex_array::array::typed::Array<vortex_alp::ALPRD>
532-
533- pub fn vortex_array::array::typed::Array<vortex_alp::ALPRD>::alprd_data(&self) -> &vortex_alp::ALPRDData
534-
535- pub fn vortex_array::array::typed::Array<vortex_alp::ALPRD>::alprd_slots(&self) -> &[core::option::Option<vortex_array::array::erased::ArrayRef>]
536-
537- pub fn vortex_array::array::typed::Array<vortex_alp::ALPRD>::left_parts(&self) -> &vortex_array::array::erased::ArrayRef
538-
539- pub fn vortex_array::array::typed::Array<vortex_alp::ALPRD>::left_parts_dictionary(&self) -> &vortex_buffer::buffer::Buffer<u16>
540-
541- pub fn vortex_array::array::typed::Array<vortex_alp::ALPRD>::left_parts_patches(&self) -> core::option::Option<vortex_array::patches::Patches>
542-
543- pub fn vortex_array::array::typed::Array<vortex_alp::ALPRD>::right_bit_width(&self) -> u8
544-
545- pub fn vortex_array::array::typed::Array<vortex_alp::ALPRD>::right_parts(&self) -> &vortex_array::array::erased::ArrayRef
546-
547- impl vortex_alp::ALPRDArrayExt for vortex_array::array::view::ArrayView<'_, vortex_alp::ALPRD>
548-
549- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALPRD>::alprd_data(&self) -> &vortex_alp::ALPRDData
550-
551- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALPRD>::alprd_slots(&self) -> &[core::option::Option<vortex_array::array::erased::ArrayRef>]
501+ impl<T: vortex_array::array::typed::TypedArrayRef<vortex_alp::ALPRD>> vortex_alp::ALPRDArrayExt for T
552502
553- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALPRD> ::left_parts(&self) -> &vortex_array::array::erased::ArrayRef
503+ pub fn T ::left_parts(&self) -> &vortex_array::array::erased::ArrayRef
554504
555- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALPRD> ::left_parts_dictionary(&self) -> &vortex_buffer::buffer::Buffer<u16>
505+ pub fn T ::left_parts_dictionary(&self) -> &vortex_buffer::buffer::Buffer<u16>
556506
557- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALPRD> ::left_parts_patches(&self) -> core::option::Option<vortex_array::patches::Patches>
507+ pub fn T ::left_parts_patches(&self) -> core::option::Option<vortex_array::patches::Patches>
558508
559- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALPRD> ::right_bit_width(&self) -> u8
509+ pub fn T ::right_bit_width(&self) -> u8
560510
561- pub fn vortex_array::array::view::ArrayView<'_, vortex_alp::ALPRD> ::right_parts(&self) -> &vortex_array::array::erased::ArrayRef
511+ pub fn T ::right_parts(&self) -> &vortex_array::array::erased::ArrayRef
562512
563513pub trait vortex_alp::ALPRDArrayOwnedExt
564514
0 commit comments