Skip to content

Commit 8e94855

Browse files
committed
u
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent 65fb0bf commit 8e94855

15 files changed

Lines changed: 6633 additions & 6371 deletions

File tree

encodings/alp/public-api.lock

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ pub fn vortex_alp::ALPArrayExt::patches(&self) -> core::option::Option<vortex_ar
394394

395395
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_alp::ALP>> vortex_alp::ALPArrayExt for T
396396

397+
pub fn T::exponents(&self) -> vortex_alp::Exponents
398+
399+
pub fn T::patches(&self) -> core::option::Option<vortex_array::patches::Patches>
400+
397401
pub trait vortex_alp::ALPArrayOwnedExt
398402

399403
pub fn vortex_alp::ALPArrayOwnedExt::into_parts(self) -> (vortex_array::array::erased::ArrayRef, vortex_alp::Exponents, core::option::Option<vortex_array::patches::Patches>)
@@ -416,6 +420,16 @@ pub fn vortex_alp::ALPArraySlotsExt::slots_view(&self) -> vortex_alp::ALPSlotsVi
416420

417421
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_alp::ALP>> vortex_alp::ALPArraySlotsExt for T
418422

423+
pub fn T::encoded(&self) -> &vortex_array::array::erased::ArrayRef
424+
425+
pub fn T::patch_chunk_offsets(&self) -> core::option::Option<&vortex_array::array::erased::ArrayRef>
426+
427+
pub fn T::patch_indices(&self) -> core::option::Option<&vortex_array::array::erased::ArrayRef>
428+
429+
pub fn T::patch_values(&self) -> core::option::Option<&vortex_array::array::erased::ArrayRef>
430+
431+
pub fn T::slots_view(&self) -> vortex_alp::ALPSlotsView<'_>
432+
419433
pub trait vortex_alp::ALPFloat: vortex_alp::alp::private::Sealed + num_traits::float::Float + core::fmt::Display + vortex_array::dtype::ptype::NativePType
420434

421435
pub type vortex_alp::ALPFloat::ALPInt: num_traits::int::PrimInt + core::fmt::Display + num_traits::cast::ToPrimitive + core::marker::Copy + vortex_array::dtype::ptype::NativePType + core::convert::Into<vortex_array::scalar::typed_view::primitive::pvalue::PValue>
@@ -476,6 +490,32 @@ pub const f32::SWEET: Self
476490

477491
pub fn f32::as_int(self) -> Self::ALPInt
478492

493+
pub fn f32::decode(&[Self::ALPInt], vortex_alp::Exponents) -> alloc::vec::Vec<Self>
494+
495+
pub fn f32::decode_buffer(vortex_buffer::buffer_mut::BufferMut<Self::ALPInt>, vortex_alp::Exponents) -> vortex_buffer::buffer_mut::BufferMut<Self>
496+
497+
pub fn f32::decode_into(&[Self::ALPInt], vortex_alp::Exponents, &mut [Self])
498+
499+
pub fn f32::decode_single(Self::ALPInt, vortex_alp::Exponents) -> Self
500+
501+
pub fn f32::decode_slice_inplace(&mut [Self::ALPInt], vortex_alp::Exponents)
502+
503+
pub fn f32::encode(&[Self], core::option::Option<vortex_alp::Exponents>) -> (vortex_alp::Exponents, vortex_buffer::buffer::Buffer<Self::ALPInt>, vortex_buffer::buffer::Buffer<u64>, vortex_buffer::buffer::Buffer<Self>, vortex_buffer::buffer_mut::BufferMut<u64>)
504+
505+
pub fn f32::encode_above(Self, vortex_alp::Exponents) -> Self::ALPInt
506+
507+
pub fn f32::encode_below(Self, vortex_alp::Exponents) -> Self::ALPInt
508+
509+
pub fn f32::encode_single(Self, vortex_alp::Exponents) -> core::option::Option<Self::ALPInt>
510+
511+
pub fn f32::encode_single_unchecked(Self, vortex_alp::Exponents) -> Self::ALPInt
512+
513+
pub fn f32::estimate_encoded_size(&[Self::ALPInt], &[Self]) -> usize
514+
515+
pub fn f32::fast_round(self) -> Self
516+
517+
pub fn f32::find_best_exponents(&[Self]) -> vortex_alp::Exponents
518+
479519
pub fn f32::from_int(Self::ALPInt) -> Self
480520

481521
impl vortex_alp::ALPFloat for f64
@@ -494,6 +534,32 @@ pub const f64::SWEET: Self
494534

495535
pub fn f64::as_int(self) -> Self::ALPInt
496536

537+
pub fn f64::decode(&[Self::ALPInt], vortex_alp::Exponents) -> alloc::vec::Vec<Self>
538+
539+
pub fn f64::decode_buffer(vortex_buffer::buffer_mut::BufferMut<Self::ALPInt>, vortex_alp::Exponents) -> vortex_buffer::buffer_mut::BufferMut<Self>
540+
541+
pub fn f64::decode_into(&[Self::ALPInt], vortex_alp::Exponents, &mut [Self])
542+
543+
pub fn f64::decode_single(Self::ALPInt, vortex_alp::Exponents) -> Self
544+
545+
pub fn f64::decode_slice_inplace(&mut [Self::ALPInt], vortex_alp::Exponents)
546+
547+
pub fn f64::encode(&[Self], core::option::Option<vortex_alp::Exponents>) -> (vortex_alp::Exponents, vortex_buffer::buffer::Buffer<Self::ALPInt>, vortex_buffer::buffer::Buffer<u64>, vortex_buffer::buffer::Buffer<Self>, vortex_buffer::buffer_mut::BufferMut<u64>)
548+
549+
pub fn f64::encode_above(Self, vortex_alp::Exponents) -> Self::ALPInt
550+
551+
pub fn f64::encode_below(Self, vortex_alp::Exponents) -> Self::ALPInt
552+
553+
pub fn f64::encode_single(Self, vortex_alp::Exponents) -> core::option::Option<Self::ALPInt>
554+
555+
pub fn f64::encode_single_unchecked(Self, vortex_alp::Exponents) -> Self::ALPInt
556+
557+
pub fn f64::estimate_encoded_size(&[Self::ALPInt], &[Self]) -> usize
558+
559+
pub fn f64::fast_round(self) -> Self
560+
561+
pub fn f64::find_best_exponents(&[Self]) -> vortex_alp::Exponents
562+
497563
pub fn f64::from_int(Self::ALPInt) -> Self
498564

499565
pub trait vortex_alp::ALPRDArrayExt: vortex_array::array::typed::TypedArrayRef<vortex_alp::ALPRD>
@@ -510,6 +576,16 @@ pub fn vortex_alp::ALPRDArrayExt::right_parts(&self) -> &vortex_array::array::er
510576

511577
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_alp::ALPRD>> vortex_alp::ALPRDArrayExt for T
512578

579+
pub fn T::left_parts(&self) -> &vortex_array::array::erased::ArrayRef
580+
581+
pub fn T::left_parts_dictionary(&self) -> &vortex_buffer::buffer::Buffer<u16>
582+
583+
pub fn T::left_parts_patches(&self) -> core::option::Option<vortex_array::patches::Patches>
584+
585+
pub fn T::right_bit_width(&self) -> u8
586+
587+
pub fn T::right_parts(&self) -> &vortex_array::array::erased::ArrayRef
588+
513589
pub trait vortex_alp::ALPRDArrayOwnedExt
514590

515591
pub fn vortex_alp::ALPRDArrayOwnedExt::into_data_parts(self) -> vortex_alp::ALPRDDataParts
@@ -536,6 +612,8 @@ impl vortex_alp::ALPRDFloat for f32
536612

537613
pub type f32::UINT = u32
538614

615+
pub const f32::BITS: usize
616+
539617
pub fn f32::from_bits(Self::UINT) -> Self
540618

541619
pub fn f32::from_u16(u16) -> Self::UINT
@@ -548,6 +626,8 @@ impl vortex_alp::ALPRDFloat for f64
548626

549627
pub type f64::UINT = u64
550628

629+
pub const f64::BITS: usize
630+
551631
pub fn f64::from_bits(Self::UINT) -> Self
552632

553633
pub fn f64::from_u16(u16) -> Self::UINT

encodings/bytebool/public-api.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn vortex_bytebool::ByteBool::slice(vortex_array::array::view::ArrayView<'_,
6666

6767
impl vortex_array::scalar_fn::fns::cast::kernel::CastKernel for vortex_bytebool::ByteBool
6868

69-
pub fn vortex_bytebool::ByteBool::cast(array: vortex_array::array::view::ArrayView<'_, Self>, dtype: &vortex_array::dtype::DType, ctx: &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<core::option::Option<vortex_array::array::erased::ArrayRef>>
69+
pub fn vortex_bytebool::ByteBool::cast(vortex_array::array::view::ArrayView<'_, Self>, &vortex_array::dtype::DType, &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<core::option::Option<vortex_array::array::erased::ArrayRef>>
7070

7171
impl vortex_array::scalar_fn::fns::cast::kernel::CastReduce for vortex_bytebool::ByteBool
7272

@@ -118,4 +118,6 @@ pub fn vortex_bytebool::ByteBoolArrayExt::validity(&self) -> vortex_array::valid
118118

119119
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_bytebool::ByteBool>> vortex_bytebool::ByteBoolArrayExt for T
120120

121+
pub fn T::validity(&self) -> vortex_array::validity::Validity
122+
121123
pub type vortex_bytebool::ByteBoolArray = vortex_array::array::typed::Array<vortex_bytebool::ByteBool>

encodings/datetime-parts/public-api.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,14 @@ pub fn vortex_datetime_parts::DateTimePartsArraySlotsExt::subseconds(&self) -> &
228228

229229
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_datetime_parts::DateTimeParts>> vortex_datetime_parts::DateTimePartsArraySlotsExt for T
230230

231+
pub fn T::days(&self) -> &vortex_array::array::erased::ArrayRef
232+
233+
pub fn T::seconds(&self) -> &vortex_array::array::erased::ArrayRef
234+
235+
pub fn T::slots_view(&self) -> vortex_datetime_parts::DateTimePartsSlotsView<'_>
236+
237+
pub fn T::subseconds(&self) -> &vortex_array::array::erased::ArrayRef
238+
231239
pub trait vortex_datetime_parts::DateTimePartsOwnedExt
232240

233241
pub fn vortex_datetime_parts::DateTimePartsOwnedExt::into_parts(self) -> vortex_datetime_parts::DateTimePartsParts

encodings/decimal-byte-parts/public-api.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ pub fn vortex_decimal_byte_parts::DecimalBytePartsArrayExt::msp(&self) -> &vorte
138138

139139
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_decimal_byte_parts::DecimalByteParts>> vortex_decimal_byte_parts::DecimalBytePartsArrayExt for T
140140

141+
pub fn T::msp(&self) -> &vortex_array::array::erased::ArrayRef
142+
141143
pub fn vortex_decimal_byte_parts::initialize(&vortex_session::VortexSession)
142144

143145
pub type vortex_decimal_byte_parts::DecimalBytePartsArray = vortex_array::array::typed::Array<vortex_decimal_byte_parts::DecimalByteParts>

encodings/fastlanes/public-api.lock

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ pub fn vortex_fastlanes::BitPacked::slice(vortex_array::array::view::ArrayView<'
188188

189189
impl vortex_array::scalar_fn::fns::cast::kernel::CastKernel for vortex_fastlanes::BitPacked
190190

191-
pub fn vortex_fastlanes::BitPacked::cast(array: vortex_array::array::view::ArrayView<'_, Self>, dtype: &vortex_array::dtype::DType, ctx: &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<core::option::Option<vortex_array::array::erased::ArrayRef>>
191+
pub fn vortex_fastlanes::BitPacked::cast(vortex_array::array::view::ArrayView<'_, Self>, &vortex_array::dtype::DType, &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<core::option::Option<vortex_array::array::erased::ArrayRef>>
192192

193193
impl vortex_array::scalar_fn::fns::cast::kernel::CastReduce for vortex_fastlanes::BitPacked
194194

@@ -584,6 +584,20 @@ pub fn vortex_fastlanes::BitPackedArrayExt::validity(&self) -> vortex_array::val
584584

585585
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_fastlanes::BitPacked>> vortex_fastlanes::BitPackedArrayExt for T
586586

587+
pub fn T::bit_width(&self) -> u8
588+
589+
pub fn T::offset(&self) -> u16
590+
591+
pub fn T::packed(&self) -> &vortex_array::buffer::BufferHandle
592+
593+
pub fn T::packed_slice<T: vortex_array::dtype::ptype::NativePType + fastlanes::bitpacking::BitPacking>(&self) -> &[T]
594+
595+
pub fn T::patches(&self) -> core::option::Option<vortex_array::patches::Patches>
596+
597+
pub fn T::unpacked_chunks<T: vortex_fastlanes::unpack_iter::BitPacked>(&self) -> vortex_error::VortexResult<vortex_fastlanes::unpack_iter::BitUnpackedChunks<T>>
598+
599+
pub fn T::validity(&self) -> vortex_array::validity::Validity
600+
587601
pub trait vortex_fastlanes::BitPackedArraySlotsExt: vortex_array::array::typed::TypedArrayRef<vortex_fastlanes::BitPacked>
588602

589603
pub fn vortex_fastlanes::BitPackedArraySlotsExt::patch_chunk_offsets(&self) -> core::option::Option<&vortex_array::array::erased::ArrayRef>
@@ -598,6 +612,16 @@ pub fn vortex_fastlanes::BitPackedArraySlotsExt::validity_child(&self) -> core::
598612

599613
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_fastlanes::BitPacked>> vortex_fastlanes::BitPackedArraySlotsExt for T
600614

615+
pub fn T::patch_chunk_offsets(&self) -> core::option::Option<&vortex_array::array::erased::ArrayRef>
616+
617+
pub fn T::patch_indices(&self) -> core::option::Option<&vortex_array::array::erased::ArrayRef>
618+
619+
pub fn T::patch_values(&self) -> core::option::Option<&vortex_array::array::erased::ArrayRef>
620+
621+
pub fn T::slots_view(&self) -> vortex_fastlanes::bitpacking::array::BitPackedSlotsView<'_>
622+
623+
pub fn T::validity_child(&self) -> core::option::Option<&vortex_array::array::erased::ArrayRef>
624+
601625
pub trait vortex_fastlanes::FoRArrayExt: vortex_array::array::typed::TypedArrayRef<vortex_fastlanes::FoR>
602626

603627
pub fn vortex_fastlanes::FoRArrayExt::encoded(&self) -> &vortex_array::array::erased::ArrayRef
@@ -606,6 +630,10 @@ pub fn vortex_fastlanes::FoRArrayExt::reference_scalar(&self) -> &vortex_array::
606630

607631
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_fastlanes::FoR>> vortex_fastlanes::FoRArrayExt for T
608632

633+
pub fn T::encoded(&self) -> &vortex_array::array::erased::ArrayRef
634+
635+
pub fn T::reference_scalar(&self) -> &vortex_array::scalar::Scalar
636+
609637
pub trait vortex_fastlanes::RLEArrayExt: vortex_array::array::typed::TypedArrayRef<vortex_fastlanes::RLE>
610638

611639
pub fn vortex_fastlanes::RLEArrayExt::indices(&self) -> &vortex_array::array::erased::ArrayRef
@@ -620,6 +648,16 @@ pub fn vortex_fastlanes::RLEArrayExt::values_idx_offsets(&self) -> &vortex_array
620648

621649
impl<T: vortex_array::array::typed::TypedArrayRef<vortex_fastlanes::RLE>> vortex_fastlanes::RLEArrayExt for T
622650

651+
pub fn T::indices(&self) -> &vortex_array::array::erased::ArrayRef
652+
653+
pub fn T::offset(&self) -> usize
654+
655+
pub fn T::values(&self) -> &vortex_array::array::erased::ArrayRef
656+
657+
pub fn T::values_idx_offset(&self, usize, &mut vortex_array::executor::ExecutionCtx) -> usize
658+
659+
pub fn T::values_idx_offsets(&self) -> &vortex_array::array::erased::ArrayRef
660+
623661
pub fn vortex_fastlanes::delta_compress(&vortex_array::arrays::primitive::vtable::PrimitiveArray, &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<(vortex_array::arrays::primitive::vtable::PrimitiveArray, vortex_array::arrays::primitive::vtable::PrimitiveArray)>
624662

625663
pub fn vortex_fastlanes::initialize(&vortex_session::VortexSession)

0 commit comments

Comments
 (0)