@@ -8,15 +8,51 @@ pub fn vortex_fastlanes::bit_transpose::untranspose_bits(input: &[u8; 128], outp
88
99pub mod vortex_fastlanes::bitpack_compress
1010
11+ pub enum vortex_fastlanes::bitpack_compress::Packed
12+
13+ pub vortex_fastlanes::bitpack_compress::Packed::Patched(vortex_fastlanes::BitPackedArray, vortex_array::patches::Patches)
14+
15+ pub vortex_fastlanes::bitpack_compress::Packed::Unpatched(vortex_fastlanes::BitPackedArray)
16+
17+ impl vortex_fastlanes::bitpack_compress::Packed
18+
19+ pub fn vortex_fastlanes::bitpack_compress::Packed::has_patches(&self) -> bool
20+
21+ pub fn vortex_fastlanes::bitpack_compress::Packed::into_array(self) -> vortex_error::VortexResult<vortex_array::array::ArrayRef>
22+
23+ pub fn vortex_fastlanes::bitpack_compress::Packed::into_packed(self) -> vortex_fastlanes::BitPackedArray
24+
25+ pub fn vortex_fastlanes::bitpack_compress::Packed::map_patches<F>(self, func: F) -> vortex_error::VortexResult<Self> where F: core::ops::function::FnOnce(vortex_array::patches::Patches) -> vortex_error::VortexResult<vortex_array::patches::Patches>
26+
27+ pub fn vortex_fastlanes::bitpack_compress::Packed::unwrap_patches(self) -> vortex_array::patches::Patches
28+
29+ pub fn vortex_fastlanes::bitpack_compress::Packed::unwrap_unpatched(self) -> vortex_fastlanes::BitPackedArray
30+
31+ impl core::fmt::Debug for vortex_fastlanes::bitpack_compress::Packed
32+
33+ pub fn vortex_fastlanes::bitpack_compress::Packed::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
34+
35+ pub struct vortex_fastlanes::bitpack_compress::BitPackedEncoder<'a>
36+
37+ impl<'a> vortex_fastlanes::bitpack_compress::BitPackedEncoder<'a>
38+
39+ pub fn vortex_fastlanes::bitpack_compress::BitPackedEncoder<'a>::new(array: &'a vortex_array::arrays::primitive::array::PrimitiveArray) -> Self
40+
41+ pub fn vortex_fastlanes::bitpack_compress::BitPackedEncoder<'a>::pack(self) -> vortex_error::VortexResult<vortex_fastlanes::bitpack_compress::Packed>
42+
43+ pub fn vortex_fastlanes::bitpack_compress::BitPackedEncoder<'a>::with_bit_width(self, bit_width: u8) -> Self
44+
45+ pub fn vortex_fastlanes::bitpack_compress::BitPackedEncoder<'a>::with_histogram(self, histogram: &'a [usize]) -> Self
46+
1147pub fn vortex_fastlanes::bitpack_compress::bit_width_histogram(array: &vortex_array::arrays::primitive::array::PrimitiveArray) -> vortex_error::VortexResult<alloc::vec::Vec<usize>>
1248
13- pub fn vortex_fastlanes::bitpack_compress::bitpack_encode(array: &vortex_array::arrays::primitive::array::PrimitiveArray, bit_width: u8, bit_width_freq: core::option::Option<&[usize]>) -> vortex_error::VortexResult<vortex_fastlanes::BitPackedArray>
49+ pub fn vortex_fastlanes::bitpack_compress::bitpack_encode(array: &vortex_array::arrays::primitive::array::PrimitiveArray, bit_width: u8, bit_width_freq: core::option::Option<&[usize]>) -> vortex_error::VortexResult<( vortex_fastlanes::BitPackedArray, core::option::Option<vortex_array::patches::Patches>) >
1450
1551pub unsafe fn vortex_fastlanes::bitpack_compress::bitpack_encode_unchecked(array: vortex_array::arrays::primitive::array::PrimitiveArray, bit_width: u8) -> vortex_error::VortexResult<vortex_fastlanes::BitPackedArray>
1652
1753pub fn vortex_fastlanes::bitpack_compress::bitpack_primitive<T: vortex_array::dtype::ptype::NativePType + fastlanes::bitpacking::BitPacking>(array: &[T], bit_width: u8) -> vortex_buffer::buffer::Buffer<T>
1854
19- pub fn vortex_fastlanes::bitpack_compress::bitpack_to_best_bit_width(array: &vortex_array::arrays::primitive::array::PrimitiveArray) -> vortex_error::VortexResult<vortex_fastlanes::BitPackedArray >
55+ pub fn vortex_fastlanes::bitpack_compress::bitpack_to_best_bit_width(array: &vortex_array::arrays::primitive::array::PrimitiveArray) -> vortex_error::VortexResult<vortex_array::array::ArrayRef >
2056
2157pub unsafe fn vortex_fastlanes::bitpack_compress::bitpack_unchecked(parray: &vortex_array::arrays::primitive::array::PrimitiveArray, bit_width: u8) -> vortex_error::VortexResult<vortex_buffer::ByteBuffer>
2258
@@ -32,18 +68,14 @@ pub fn vortex_fastlanes::bitpack_decompress::apply_patches_to_uninit_range_fn<T:
3268
3369pub fn vortex_fastlanes::bitpack_decompress::count_exceptions(bit_width: u8, bit_width_freq: &[usize]) -> usize
3470
35- pub fn vortex_fastlanes::bitpack_decompress::unpack_array(array: &vortex_fastlanes::BitPackedArray, ctx: &mut vortex_array::executor::ExecutionCtx ) -> vortex_error::VortexResult<vortex_array::arrays::primitive::array::PrimitiveArray>
71+ pub fn vortex_fastlanes::bitpack_decompress::unpack_array(array: &vortex_fastlanes::BitPackedArray) -> vortex_error::VortexResult<vortex_array::arrays::primitive::array::PrimitiveArray>
3672
37- pub fn vortex_fastlanes::bitpack_decompress::unpack_primitive_array<T: vortex_fastlanes::unpack_iter::BitPacked>(array: &vortex_fastlanes::BitPackedArray, ctx: &mut vortex_array::executor::ExecutionCtx ) -> vortex_error::VortexResult<vortex_array::arrays::primitive::array::PrimitiveArray>
73+ pub fn vortex_fastlanes::bitpack_decompress::unpack_primitive_array<T: vortex_fastlanes::unpack_iter::BitPacked>(array: &vortex_fastlanes::BitPackedArray) -> vortex_error::VortexResult<vortex_array::arrays::primitive::array::PrimitiveArray>
3874
3975pub fn vortex_fastlanes::bitpack_decompress::unpack_single(array: &vortex_fastlanes::BitPackedArray, index: usize) -> vortex_array::scalar::Scalar
4076
4177pub unsafe fn vortex_fastlanes::bitpack_decompress::unpack_single_primitive<T: vortex_array::dtype::ptype::NativePType + fastlanes::bitpacking::BitPacking>(packed: &[T], bit_width: usize, index_to_decode: usize) -> T
4278
43- pub fn vortex_fastlanes::bitpack_decompress::unpack_to_primitive(array: &vortex_fastlanes::BitPackedArray) -> vortex_array::arrays::primitive::array::PrimitiveArray
44-
45- pub fn vortex_fastlanes::bitpack_decompress::unpack_to_primitive_typed<P: vortex_fastlanes::unpack_iter::BitPacked>(array: &vortex_fastlanes::BitPackedArray) -> vortex_array::arrays::primitive::array::PrimitiveArray
46-
4779pub mod vortex_fastlanes::unpack_iter
4880
4981pub struct vortex_fastlanes::unpack_iter::BitPackingStrategy
@@ -128,7 +160,7 @@ pub fn vortex_fastlanes::BitPacked::take(array: &vortex_fastlanes::BitPackedArra
128160
129161impl vortex_array::arrays::filter::kernel::FilterKernel for vortex_fastlanes::BitPacked
130162
131- pub fn vortex_fastlanes::BitPacked::filter(array: &vortex_fastlanes::BitPackedArray, mask: &vortex_mask::Mask, ctx : &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<core::option::Option<vortex_array::array::ArrayRef>>
163+ pub fn vortex_fastlanes::BitPacked::filter(array: &vortex_fastlanes::BitPackedArray, mask: &vortex_mask::Mask, _ctx : &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<core::option::Option<vortex_array::array::ArrayRef>>
132164
133165impl vortex_array::arrays::slice::SliceKernel for vortex_fastlanes::BitPacked
134166
@@ -148,7 +180,7 @@ pub type vortex_fastlanes::BitPacked::OperationsVTable = vortex_fastlanes::BitPa
148180
149181pub type vortex_fastlanes::BitPacked::ValidityVTable = vortex_array::vtable::validity::ValidityVTableFromValidityHelper
150182
151- pub fn vortex_fastlanes::BitPacked::append_to_builder(array: &vortex_fastlanes::BitPackedArray, builder: &mut dyn vortex_array::builders::ArrayBuilder, ctx : &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<()>
183+ pub fn vortex_fastlanes::BitPacked::append_to_builder(array: &vortex_fastlanes::BitPackedArray, builder: &mut dyn vortex_array::builders::ArrayBuilder, _ctx : &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<()>
152184
153185pub fn vortex_fastlanes::BitPacked::array_eq(array: &vortex_fastlanes::BitPackedArray, other: &vortex_fastlanes::BitPackedArray, precision: vortex_array::hash::Precision) -> bool
154186
@@ -158,17 +190,17 @@ pub fn vortex_fastlanes::BitPacked::buffer(array: &vortex_fastlanes::BitPackedAr
158190
159191pub fn vortex_fastlanes::BitPacked::buffer_name(_array: &vortex_fastlanes::BitPackedArray, idx: usize) -> core::option::Option<alloc::string::String>
160192
161- pub fn vortex_fastlanes::BitPacked::build(dtype: &vortex_array::dtype::DType, len: usize, metadata: &Self::Metadata, buffers: &[vortex_array::buffer::BufferHandle], children: &dyn vortex_array::serde::ArrayChildren) -> vortex_error::VortexResult<vortex_fastlanes::BitPackedArray >
193+ pub fn vortex_fastlanes::BitPacked::build(dtype: &vortex_array::dtype::DType, len: usize, metadata: &Self::Metadata, buffers: &[vortex_array::buffer::BufferHandle], children: &dyn vortex_array::serde::ArrayChildren) -> vortex_error::VortexResult<vortex_array::array::ArrayRef >
162194
163195pub fn vortex_fastlanes::BitPacked::child(array: &vortex_fastlanes::BitPackedArray, idx: usize) -> vortex_array::array::ArrayRef
164196
165- pub fn vortex_fastlanes::BitPacked::child_name(array : &vortex_fastlanes::BitPackedArray, idx : usize) -> alloc::string::String
197+ pub fn vortex_fastlanes::BitPacked::child_name(_array : &vortex_fastlanes::BitPackedArray, _index : usize) -> alloc::string::String
166198
167199pub fn vortex_fastlanes::BitPacked::deserialize(bytes: &[u8], _dtype: &vortex_array::dtype::DType, _len: usize, _buffers: &[vortex_array::buffer::BufferHandle], _session: &vortex_session::VortexSession) -> vortex_error::VortexResult<Self::Metadata>
168200
169201pub fn vortex_fastlanes::BitPacked::dtype(array: &vortex_fastlanes::BitPackedArray) -> &vortex_array::dtype::DType
170202
171- pub fn vortex_fastlanes::BitPacked::execute(array: &Self::Array, ctx : &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<vortex_array::executor::ExecutionStep>
203+ pub fn vortex_fastlanes::BitPacked::execute(array: &Self::Array, _ctx : &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<vortex_array::executor::ExecutionStep>
172204
173205pub fn vortex_fastlanes::BitPacked::execute_parent(array: &Self::Array, parent: &vortex_array::array::ArrayRef, child_idx: usize, ctx: &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<core::option::Option<vortex_array::array::ArrayRef>>
174206
@@ -200,8 +232,6 @@ impl vortex_fastlanes::BitPackedArray
200232
201233pub fn vortex_fastlanes::BitPackedArray::bit_width(&self) -> u8
202234
203- pub fn vortex_fastlanes::BitPackedArray::encode(array: &vortex_array::array::ArrayRef, bit_width: u8) -> vortex_error::VortexResult<Self>
204-
205235pub fn vortex_fastlanes::BitPackedArray::into_parts(self) -> vortex_fastlanes::BitPackedArrayParts
206236
207237pub fn vortex_fastlanes::BitPackedArray::max_packed_value(&self) -> usize
@@ -212,13 +242,9 @@ pub fn vortex_fastlanes::BitPackedArray::packed(&self) -> &vortex_array::buffer:
212242
213243pub fn vortex_fastlanes::BitPackedArray::packed_slice<T: vortex_array::dtype::ptype::NativePType + fastlanes::bitpacking::BitPacking>(&self) -> &[T]
214244
215- pub fn vortex_fastlanes::BitPackedArray::patches(&self) -> core::option::Option<&vortex_array::patches::Patches>
216-
217245pub fn vortex_fastlanes::BitPackedArray::ptype(&self) -> vortex_array::dtype::ptype::PType
218246
219- pub fn vortex_fastlanes::BitPackedArray::replace_patches(&mut self, patches: core::option::Option<vortex_array::patches::Patches>)
220-
221- pub fn vortex_fastlanes::BitPackedArray::try_new(packed: vortex_array::buffer::BufferHandle, ptype: vortex_array::dtype::ptype::PType, validity: vortex_array::validity::Validity, patches: core::option::Option<vortex_array::patches::Patches>, bit_width: u8, length: usize, offset: u16) -> vortex_error::VortexResult<Self>
247+ pub fn vortex_fastlanes::BitPackedArray::try_new(packed: vortex_array::buffer::BufferHandle, ptype: vortex_array::dtype::ptype::PType, validity: vortex_array::validity::Validity, bit_width: u8, length: usize, offset: u16) -> vortex_error::VortexResult<Self>
222248
223249pub fn vortex_fastlanes::BitPackedArray::unpacked_chunks<T: vortex_fastlanes::unpack_iter::BitPacked>(&self) -> vortex_fastlanes::unpack_iter::BitUnpackedChunks<T>
224250
@@ -266,8 +292,6 @@ pub vortex_fastlanes::BitPackedArrayParts::offset: u16
266292
267293pub vortex_fastlanes::BitPackedArrayParts::packed: vortex_array::buffer::BufferHandle
268294
269- pub vortex_fastlanes::BitPackedArrayParts::patches: core::option::Option<vortex_array::patches::Patches>
270-
271295pub vortex_fastlanes::BitPackedArrayParts::validity: vortex_array::validity::Validity
272296
273297pub struct vortex_fastlanes::Delta
@@ -306,7 +330,7 @@ pub fn vortex_fastlanes::Delta::buffer(_array: &vortex_fastlanes::DeltaArray, id
306330
307331pub fn vortex_fastlanes::Delta::buffer_name(_array: &vortex_fastlanes::DeltaArray, _idx: usize) -> core::option::Option<alloc::string::String>
308332
309- pub fn vortex_fastlanes::Delta::build(dtype: &vortex_array::dtype::DType, len: usize, metadata: &Self::Metadata, _buffers: &[vortex_array::buffer::BufferHandle], children: &dyn vortex_array::serde::ArrayChildren) -> vortex_error::VortexResult<vortex_fastlanes::DeltaArray >
333+ pub fn vortex_fastlanes::Delta::build(dtype: &vortex_array::dtype::DType, len: usize, metadata: &Self::Metadata, _buffers: &[vortex_array::buffer::BufferHandle], children: &dyn vortex_array::serde::ArrayChildren) -> vortex_error::VortexResult<vortex_array::array::ArrayRef >
310334
311335pub fn vortex_fastlanes::Delta::child(array: &vortex_fastlanes::DeltaArray, idx: usize) -> vortex_array::array::ArrayRef
312336
@@ -446,7 +470,7 @@ pub fn vortex_fastlanes::FoR::buffer(_array: &vortex_fastlanes::FoRArray, idx: u
446470
447471pub fn vortex_fastlanes::FoR::buffer_name(_array: &vortex_fastlanes::FoRArray, _idx: usize) -> core::option::Option<alloc::string::String>
448472
449- pub fn vortex_fastlanes::FoR::build(dtype: &vortex_array::dtype::DType, len: usize, metadata: &Self::Metadata, _buffers: &[vortex_array::buffer::BufferHandle], children: &dyn vortex_array::serde::ArrayChildren) -> vortex_error::VortexResult<vortex_fastlanes::FoRArray >
473+ pub fn vortex_fastlanes::FoR::build(dtype: &vortex_array::dtype::DType, len: usize, metadata: &Self::Metadata, _buffers: &[vortex_array::buffer::BufferHandle], children: &dyn vortex_array::serde::ArrayChildren) -> vortex_error::VortexResult<vortex_array::array::ArrayRef >
450474
451475pub fn vortex_fastlanes::FoR::child(array: &vortex_fastlanes::FoRArray, idx: usize) -> vortex_array::array::ArrayRef
452476
@@ -568,7 +592,7 @@ pub fn vortex_fastlanes::RLE::buffer(_array: &vortex_fastlanes::RLEArray, idx: u
568592
569593pub fn vortex_fastlanes::RLE::buffer_name(_array: &vortex_fastlanes::RLEArray, _idx: usize) -> core::option::Option<alloc::string::String>
570594
571- pub fn vortex_fastlanes::RLE::build(dtype: &vortex_array::dtype::DType, len: usize, metadata: &Self::Metadata, _buffers: &[vortex_array::buffer::BufferHandle], children: &dyn vortex_array::serde::ArrayChildren) -> vortex_error::VortexResult<vortex_fastlanes::RLEArray >
595+ pub fn vortex_fastlanes::RLE::build(dtype: &vortex_array::dtype::DType, len: usize, metadata: &Self::Metadata, _buffers: &[vortex_array::buffer::BufferHandle], children: &dyn vortex_array::serde::ArrayChildren) -> vortex_error::VortexResult<vortex_array::array::ArrayRef >
572596
573597pub fn vortex_fastlanes::RLE::child(array: &vortex_fastlanes::RLEArray, idx: usize) -> vortex_array::array::ArrayRef
574598
0 commit comments