diff --git a/docs/rust/.rustc_info.json b/docs/rust/.rustc_info.json index 30a01191aa..0f005030bc 100644 --- a/docs/rust/.rustc_info.json +++ b/docs/rust/.rustc_info.json @@ -1 +1 @@ -{"rustc_fingerprint":9157450911426878847,"outputs":{"16328442174039370641":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/runner/.rustup/toolchains/nightly-2024-09-04-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\nfmt_debug=\"full\"\noverflow_checks\npanic=\"unwind\"\nproc_macro\nrelocation_model=\"pic\"\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_equal_alignment=\"16\"\ntarget_has_atomic_equal_alignment=\"32\"\ntarget_has_atomic_equal_alignment=\"64\"\ntarget_has_atomic_equal_alignment=\"8\"\ntarget_has_atomic_equal_alignment=\"ptr\"\ntarget_has_atomic_load_store\ntarget_has_atomic_load_store=\"16\"\ntarget_has_atomic_load_store=\"32\"\ntarget_has_atomic_load_store=\"64\"\ntarget_has_atomic_load_store=\"8\"\ntarget_has_atomic_load_store=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_thread_local\ntarget_vendor=\"unknown\"\nub_checks\nunix\n","stderr":""},"16992575326180275217":{"success":true,"status":"","code":0,"stdout":"rustc 1.83.0-nightly (d6c8169c1 2024-09-03)\nbinary: rustc\ncommit-hash: d6c8169c186ab16a3404cd0d0866674018e8a19e\ncommit-date: 2024-09-03\nhost: x86_64-unknown-linux-gnu\nrelease: 1.83.0-nightly\nLLVM version: 19.1.0\n","stderr":""}},"successes":{}} \ No newline at end of file +{"rustc_fingerprint":7182012635611003835,"outputs":{"16328442174039370641":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/runner/.rustup/toolchains/nightly-2024-09-04-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\nfmt_debug=\"full\"\noverflow_checks\npanic=\"unwind\"\nproc_macro\nrelocation_model=\"pic\"\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_has_atomic_equal_alignment=\"16\"\ntarget_has_atomic_equal_alignment=\"32\"\ntarget_has_atomic_equal_alignment=\"64\"\ntarget_has_atomic_equal_alignment=\"8\"\ntarget_has_atomic_equal_alignment=\"ptr\"\ntarget_has_atomic_load_store\ntarget_has_atomic_load_store=\"16\"\ntarget_has_atomic_load_store=\"32\"\ntarget_has_atomic_load_store=\"64\"\ntarget_has_atomic_load_store=\"8\"\ntarget_has_atomic_load_store=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_thread_local\ntarget_vendor=\"unknown\"\nub_checks\nunix\n","stderr":""},"16992575326180275217":{"success":true,"status":"","code":0,"stdout":"rustc 1.83.0-nightly (d6c8169c1 2024-09-03)\nbinary: rustc\ncommit-hash: d6c8169c186ab16a3404cd0d0866674018e8a19e\ncommit-date: 2024-09-03\nhost: x86_64-unknown-linux-gnu\nrelease: 1.83.0-nightly\nLLVM version: 19.1.0\n","stderr":""}},"successes":{}} \ No newline at end of file diff --git a/docs/rust/doc/help.html b/docs/rust/doc/help.html index 8662a83413..f16d0e0b3e 100644 --- a/docs/rust/doc/help.html +++ b/docs/rust/doc/help.html @@ -1 +1 @@ -Help

Rustdoc help

Back
\ No newline at end of file +Help

Rustdoc help

Back
\ No newline at end of file diff --git a/docs/rust/doc/index.html b/docs/rust/doc/index.html index a2f6a62eca..cf8b03c157 100644 --- a/docs/rust/doc/index.html +++ b/docs/rust/doc/index.html @@ -1,2 +1,2 @@ -Index of crates

List of all crates

- \ No newline at end of file +Index of crates

List of all crates

+ \ No newline at end of file diff --git a/docs/rust/doc/settings.html b/docs/rust/doc/settings.html index 6d6a407cb6..a73126a773 100644 --- a/docs/rust/doc/settings.html +++ b/docs/rust/doc/settings.html @@ -1 +1 @@ -Settings

Rustdoc settings

Back
\ No newline at end of file +Settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/docs/rust/doc/src/vortex_runend/compute/compare.rs.html b/docs/rust/doc/src/vortex_runend/compute/compare.rs.html index 930669f280..743956bdf6 100644 --- a/docs/rust/doc/src/vortex_runend/compute/compare.rs.html +++ b/docs/rust/doc/src/vortex_runend/compute/compare.rs.html @@ -51,11 +51,18 @@ 51 52 53 +54 +55 +56 +57 +58 +59
use vortex_array::array::ConstantArray;
 use vortex_array::compute::{compare, CompareFn, Operator};
-use vortex_array::{ArrayData, ArrayLen, IntoArrayData};
+use vortex_array::{ArrayData, ArrayLen, IntoArrayData, IntoArrayVariant};
 use vortex_error::VortexResult;
 
+use crate::compress::runend_decode_bools;
 use crate::{RunEndArray, RunEndEncoding};
 
 impl CompareFn<RunEndArray> for RunEndEncoding {
@@ -73,7 +80,12 @@
                 operator,
             )
             .and_then(|values| {
-                RunEndArray::with_offset_and_length(lhs.ends(), values, lhs.offset(), lhs.len())
+                runend_decode_bools(
+                    lhs.ends().into_primitive()?,
+                    values.into_bool()?,
+                    lhs.offset(),
+                    lhs.len(),
+                )
             })
             .map(|a| a.into_array())
             .map(Some);
diff --git a/docs/rust/doc/trait.impl/core/iter/traits/collect/trait.Extend.js b/docs/rust/doc/trait.impl/core/iter/traits/collect/trait.Extend.js
index 022c930d25..51c85279c9 100644
--- a/docs/rust/doc/trait.impl/core/iter/traits/collect/trait.Extend.js
+++ b/docs/rust/doc/trait.impl/core/iter/traits/collect/trait.Extend.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["vortex_array",[["impl Extend<(Stat, Scalar)> for StatsSet"]]]]);
+    var implementors = Object.fromEntries([["vortex_array",[["impl Extend<(Stat, Scalar)> for StatsSet"]]]]);
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[561]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[456]}
\ No newline at end of file
diff --git a/docs/rust/doc/vortex_array/array/fn.varbin_scalar.html b/docs/rust/doc/vortex_array/array/fn.varbin_scalar.html
index 4700f1b377..2077fa3453 100644
--- a/docs/rust/doc/vortex_array/array/fn.varbin_scalar.html
+++ b/docs/rust/doc/vortex_array/array/fn.varbin_scalar.html
@@ -1 +1 @@
-varbin_scalar in vortex_array::array - Rust

Function vortex_array::array::varbin_scalar

source ·
pub fn varbin_scalar(value: Buffer, dtype: &DType) -> Scalar
\ No newline at end of file +varbin_scalar in vortex_array::array - Rust

Function vortex_array::array::varbin_scalar

source ·
pub fn varbin_scalar(value: Buffer, dtype: &DType) -> Scalar
\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/array/struct.BoolArray.html b/docs/rust/doc/vortex_array/array/struct.BoolArray.html index 7ac8b5aa3c..d8e7d5d207 100644 --- a/docs/rust/doc/vortex_array/array/struct.BoolArray.html +++ b/docs/rust/doc/vortex_array/array/struct.BoolArray.html @@ -19,9 +19,9 @@

Trait Implementations§

source§

impl AsRef<ArrayData> for BoolArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for BoolArray

source§

fn clone(&self) -> BoolArray

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BoolArray

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FillForwardFn<BoolArray> for BoolEncoding

source§

fn fill_forward(&self, array: &BoolArray) -> VortexResult<ArrayData>

source§

impl FillNullFn<BoolArray> for BoolEncoding

source§

fn fill_null( &self, array: &BoolArray, - fill_value: Scalar, + fill_value: Scalar, ) -> VortexResult<ArrayData>

source§

impl FilterFn<BoolArray> for BoolEncoding

source§

fn filter(&self, array: &BoolArray, mask: FilterMask) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl From<BooleanBuffer> for BoolArray

source§

fn from(value: BooleanBuffer) -> Self

Converts to this type from the input type.
source§

impl FromIterator<Option<bool>> for BoolArray

source§

fn from_iter<I: IntoIterator<Item = Option<bool>>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<bool> for BoolArray

source§

fn from_iter<T: IntoIterator<Item = bool>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl IntoArrayData for BoolArray

source§

impl IntoCanonical for BoolArray

source§

fn into_canonical(self) -> VortexResult<Canonical>

source§

fn into_arrow(self) -> VortexResult<ArrayRef>
where - Self: Sized,

source§

impl InvertFn<BoolArray> for BoolEncoding

source§

fn invert(&self, array: &BoolArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl ScalarAtFn<BoolArray> for BoolEncoding

source§

fn scalar_at(&self, array: &BoolArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<BoolArray> for BoolEncoding

source§

fn slice( + Self: Sized,

source§

impl InvertFn<BoolArray> for BoolEncoding

source§

fn invert(&self, array: &BoolArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl ScalarAtFn<BoolArray> for BoolEncoding

source§

fn scalar_at(&self, array: &BoolArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<BoolArray> for BoolEncoding

source§

fn slice( &self, array: &BoolArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.BoolEncoding.html b/docs/rust/doc/vortex_array/array/struct.BoolEncoding.html index 8054d8b352..10d129c91d 100644 --- a/docs/rust/doc/vortex_array/array/struct.BoolEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.BoolEncoding.html @@ -3,8 +3,8 @@ the receiver. Read more

source§

fn cast_fn(&self) -> Option<&dyn CastFn<ArrayData>>

Implemented for arrays that can be casted to different types. Read more
source§

fn compare_fn(&self) -> Option<&dyn CompareFn<ArrayData>>

Binary operator implementation for arrays against other arrays. Read more
source§

fn like_fn(&self) -> Option<&dyn LikeFn<ArrayData>>

Perform a SQL LIKE operation on two arrays. Read more
source§

fn search_sorted_fn(&self) -> Option<&dyn SearchSortedFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

fn search_sorted_usize_fn(&self) -> Option<&dyn SearchSortedUsizeFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

fn subtract_scalar_fn(&self) -> Option<&dyn SubtractScalarFn<ArrayData>>

Broadcast subtraction of scalar from Vortex array. Read more
source§

impl Debug for BoolEncoding

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Encoding for BoolEncoding

source§

impl EncodingVTable for BoolEncoding

source§

fn id(&self) -> EncodingId

source§

fn as_any(&self) -> &dyn Any

source§

impl FillForwardFn<BoolArray> for BoolEncoding

source§

fn fill_forward(&self, array: &BoolArray) -> VortexResult<ArrayData>

source§

impl FillNullFn<BoolArray> for BoolEncoding

source§

fn fill_null( &self, array: &BoolArray, - fill_value: Scalar, -) -> VortexResult<ArrayData>

source§

impl FilterFn<BoolArray> for BoolEncoding

source§

fn filter(&self, array: &BoolArray, mask: FilterMask) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl InvertFn<BoolArray> for BoolEncoding

source§

fn invert(&self, array: &BoolArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl ScalarAtFn<BoolArray> for BoolEncoding

source§

fn scalar_at(&self, array: &BoolArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<BoolArray> for BoolEncoding

source§

fn slice( + fill_value: Scalar, +) -> VortexResult<ArrayData>

source§

impl FilterFn<BoolArray> for BoolEncoding

source§

fn filter(&self, array: &BoolArray, mask: FilterMask) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl InvertFn<BoolArray> for BoolEncoding

source§

fn invert(&self, array: &BoolArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl ScalarAtFn<BoolArray> for BoolEncoding

source§

fn scalar_at(&self, array: &BoolArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<BoolArray> for BoolEncoding

source§

fn slice( &self, array: &BoolArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.ChunkedArray.html b/docs/rust/doc/vortex_array/array/struct.ChunkedArray.html index 456e2507a8..ec94bff978 100644 --- a/docs/rust/doc/vortex_array/array/struct.ChunkedArray.html +++ b/docs/rust/doc/vortex_array/array/struct.ChunkedArray.html @@ -19,13 +19,13 @@ Or, returns None if comparison is not supported for these arrays.

source§

impl Debug for ChunkedArray

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl ExtensionArrayTrait for ChunkedArray

source§

fn storage_data(&self) -> ArrayData

Returns the underlying ArrayData, without the [ExtDType].
source§

fn ext_dtype(&self) -> &Arc<ExtDType>

Returns the extension logical [DType].
source§

impl FillNullFn<ChunkedArray> for ChunkedEncoding

source§

fn fill_null( &self, array: &ChunkedArray, - fill_value: Scalar, + fill_value: Scalar, ) -> VortexResult<ArrayData>

source§

impl FilterFn<ChunkedArray> for ChunkedEncoding

source§

fn filter( &self, array: &ChunkedArray, mask: FilterMask, ) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl FromIterator<ArrayData> for ChunkedArray

source§

fn from_iter<T: IntoIterator<Item = ArrayData>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl IntoArrayData for ChunkedArray

source§

impl IntoCanonical for ChunkedArray

source§

fn into_canonical(self) -> VortexResult<Canonical>

source§

fn into_arrow(self) -> VortexResult<ArrayRef>
where - Self: Sized,

source§

impl InvertFn<ChunkedArray> for ChunkedEncoding

source§

fn invert(&self, array: &ChunkedArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl PrimitiveArrayTrait for ChunkedArray

source§

fn ptype(&self) -> PType

source§

impl ScalarAtFn<ChunkedArray> for ChunkedEncoding

source§

fn scalar_at(&self, array: &ChunkedArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<ChunkedArray> for ChunkedEncoding

source§

fn slice( + Self: Sized,

source§

impl InvertFn<ChunkedArray> for ChunkedEncoding

source§

fn invert(&self, array: &ChunkedArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl PrimitiveArrayTrait for ChunkedArray

source§

fn ptype(&self) -> PType

source§

impl ScalarAtFn<ChunkedArray> for ChunkedEncoding

source§

fn scalar_at(&self, array: &ChunkedArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<ChunkedArray> for ChunkedEncoding

source§

fn slice( &self, array: &ChunkedArray, start: usize, @@ -39,7 +39,7 @@ ) -> VortexResult<StatsSet>

Compute the requested statistic. Can return additional stats.
source§

impl StructArrayTrait for ChunkedArray

source§

fn field(&self, idx: usize) -> Option<ArrayData>

Return a field’s array by index
source§

fn project(&self, projection: &[Field]) -> VortexResult<ArrayData>

source§

fn names(&self) -> &FieldNames

source§

fn dtypes(&self) -> &[DType]

source§

fn nfields(&self) -> usize

source§

fn field_by_name(&self, name: &str) -> Option<ArrayData>

Return a field’s array by name
source§

impl SubtractScalarFn<ChunkedArray> for ChunkedEncoding

source§

fn subtract_scalar( &self, array: &ChunkedArray, - to_subtract: &Scalar, + to_subtract: &Scalar, ) -> VortexResult<ArrayData>

source§

impl TakeFn<ChunkedArray> for ChunkedEncoding

source§

fn take( &self, array: &ChunkedArray, diff --git a/docs/rust/doc/vortex_array/array/struct.ChunkedEncoding.html b/docs/rust/doc/vortex_array/array/struct.ChunkedEncoding.html index 3315423837..a2890dc1f4 100644 --- a/docs/rust/doc/vortex_array/array/struct.ChunkedEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.ChunkedEncoding.html @@ -14,12 +14,12 @@ the receiver. Read more

source§

fn fill_forward_fn(&self) -> Option<&dyn FillForwardFn<ArrayData>>

Array function that returns new arrays a non-null value is repeated across runs of nulls. Read more
source§

fn like_fn(&self) -> Option<&dyn LikeFn<ArrayData>>

Perform a SQL LIKE operation on two arrays. Read more
source§

fn search_sorted_fn(&self) -> Option<&dyn SearchSortedFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

fn search_sorted_usize_fn(&self) -> Option<&dyn SearchSortedUsizeFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

impl Debug for ChunkedEncoding

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Encoding for ChunkedEncoding

source§

impl EncodingVTable for ChunkedEncoding

source§

fn id(&self) -> EncodingId

source§

fn as_any(&self) -> &dyn Any

source§

impl FillNullFn<ChunkedArray> for ChunkedEncoding

source§

fn fill_null( &self, array: &ChunkedArray, - fill_value: Scalar, + fill_value: Scalar, ) -> VortexResult<ArrayData>

source§

impl FilterFn<ChunkedArray> for ChunkedEncoding

source§

fn filter( &self, array: &ChunkedArray, mask: FilterMask, -) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl InvertFn<ChunkedArray> for ChunkedEncoding

source§

fn invert(&self, array: &ChunkedArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl ScalarAtFn<ChunkedArray> for ChunkedEncoding

source§

fn scalar_at(&self, array: &ChunkedArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<ChunkedArray> for ChunkedEncoding

source§

fn slice( +) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl InvertFn<ChunkedArray> for ChunkedEncoding

source§

fn invert(&self, array: &ChunkedArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl ScalarAtFn<ChunkedArray> for ChunkedEncoding

source§

fn scalar_at(&self, array: &ChunkedArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<ChunkedArray> for ChunkedEncoding

source§

fn slice( &self, array: &ChunkedArray, start: usize, @@ -33,7 +33,7 @@ ) -> VortexResult<StatsSet>

Compute the requested statistic. Can return additional stats.
source§

impl SubtractScalarFn<ChunkedArray> for ChunkedEncoding

source§

fn subtract_scalar( &self, array: &ChunkedArray, - to_subtract: &Scalar, + to_subtract: &Scalar, ) -> VortexResult<ArrayData>

source§

impl TakeFn<ChunkedArray> for ChunkedEncoding

source§

fn take( &self, array: &ChunkedArray, diff --git a/docs/rust/doc/vortex_array/array/struct.ConstantArray.html b/docs/rust/doc/vortex_array/array/struct.ConstantArray.html index 23f6b0b9d2..277b0f4cab 100644 --- a/docs/rust/doc/vortex_array/array/struct.ConstantArray.html +++ b/docs/rust/doc/vortex_array/array/struct.ConstantArray.html @@ -2,9 +2,9 @@

Preferred in cases where a backtrace isn’t needed, like when trying multiple encoding to go down different code paths.

source§

impl ConstantArray

source

pub fn new<S>(scalar: S, length: usize) -> Self
where - S: Into<Scalar>,

source

pub fn scalar(&self) -> Scalar

Returns the Scalar value of this constant array.

+ S: Into<Scalar>,
source

pub fn scalar(&self) -> Scalar

Returns the [Scalar] value of this constant array.

Trait Implementations§

source§

impl<T> Accessor<T> for ConstantArray
where - T: Clone + TryFrom<Scalar, Error = VortexError>,

source§

fn array_len(&self) -> usize

source§

fn is_valid(&self, index: usize) -> bool

source§

fn value_unchecked(&self, _index: usize) -> T

source§

fn array_validity(&self) -> Validity

source§

fn batch_size(&self, start_idx: usize) -> usize

source§

fn decode_batch(&self, start_idx: usize) -> Vec<T>

source§

impl AsRef<ArrayData> for ConstantArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl BinaryBooleanFn<ConstantArray> for ConstantEncoding

source§

fn binary_boolean( + T: Clone + TryFrom<Scalar, Error = VortexError>,

source§

fn array_len(&self) -> usize

source§

fn is_valid(&self, index: usize) -> bool

source§

fn value_unchecked(&self, _index: usize) -> T

source§

fn array_validity(&self) -> Validity

source§

fn batch_size(&self, start_idx: usize) -> usize

source§

fn decode_batch(&self, start_idx: usize) -> Vec<T>

source§

impl AsRef<ArrayData> for ConstantArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl BinaryBooleanFn<ConstantArray> for ConstantEncoding

source§

fn binary_boolean( &self, lhs: &ConstantArray, rhs: &ArrayData, @@ -24,15 +24,15 @@ &self, array: &ConstantArray, _index: usize, -) -> VortexResult<Scalar>

source§

impl SearchSortedFn<ConstantArray> for ConstantEncoding

source§

fn search_sorted( +) -> VortexResult<Scalar>

source§

impl SearchSortedFn<ConstantArray> for ConstantEncoding

source§

fn search_sorted( &self, array: &ConstantArray, - value: &Scalar, + value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>

source§

fn search_sorted_many( &self, array: &Array, - values: &[Scalar], + values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

Bulk search for many values.
source§

impl SliceFn<ConstantArray> for ConstantEncoding

source§

fn slice( &self, diff --git a/docs/rust/doc/vortex_array/array/struct.ConstantEncoding.html b/docs/rust/doc/vortex_array/array/struct.ConstantEncoding.html index 8fed108fcf..fb1ad39350 100644 --- a/docs/rust/doc/vortex_array/array/struct.ConstantEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.ConstantEncoding.html @@ -19,15 +19,15 @@ &self, array: &ConstantArray, _index: usize, -) -> VortexResult<Scalar>

source§

impl SearchSortedFn<ConstantArray> for ConstantEncoding

source§

fn search_sorted( +) -> VortexResult<Scalar>

source§

impl SearchSortedFn<ConstantArray> for ConstantEncoding

source§

fn search_sorted( &self, array: &ConstantArray, - value: &Scalar, + value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>

source§

fn search_sorted_many( &self, array: &Array, - values: &[Scalar], + values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

Bulk search for many values.
source§

impl SliceFn<ConstantArray> for ConstantEncoding

source§

fn slice( &self, diff --git a/docs/rust/doc/vortex_array/array/struct.ExtensionArray.html b/docs/rust/doc/vortex_array/array/struct.ExtensionArray.html index 917b52be8f..6d58ceb468 100644 --- a/docs/rust/doc/vortex_array/array/struct.ExtensionArray.html +++ b/docs/rust/doc/vortex_array/array/struct.ExtensionArray.html @@ -12,7 +12,7 @@ &self, array: &ExtensionArray, index: usize, -) -> VortexResult<Scalar>

source§

impl SliceFn<ExtensionArray> for ExtensionEncoding

source§

fn slice( +) -> VortexResult<Scalar>

source§

impl SliceFn<ExtensionArray> for ExtensionEncoding

source§

fn slice( &self, array: &ExtensionArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.ExtensionEncoding.html b/docs/rust/doc/vortex_array/array/struct.ExtensionEncoding.html index 16e0e4a012..3f76c93d99 100644 --- a/docs/rust/doc/vortex_array/array/struct.ExtensionEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.ExtensionEncoding.html @@ -10,7 +10,7 @@ &self, array: &ExtensionArray, index: usize, -) -> VortexResult<Scalar>

source§

impl SliceFn<ExtensionArray> for ExtensionEncoding

source§

fn slice( +) -> VortexResult<Scalar>

source§

impl SliceFn<ExtensionArray> for ExtensionEncoding

source§

fn slice( &self, array: &ExtensionArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.ListArray.html b/docs/rust/doc/vortex_array/array/struct.ListArray.html index 1b8353b1e8..eb526d4d9e 100644 --- a/docs/rust/doc/vortex_array/array/struct.ListArray.html +++ b/docs/rust/doc/vortex_array/array/struct.ListArray.html @@ -6,7 +6,7 @@ offsets: ArrayData, validity: Validity, ) -> VortexResult<Self>

source

pub fn validity(&self) -> Validity

source

pub fn offset_at(&self, index: usize) -> usize

source

pub fn elements_at(&self, index: usize) -> VortexResult<ArrayData>

source

pub fn offsets(&self) -> ArrayData

source

pub fn elements(&self) -> ArrayData

Trait Implementations§

source§

impl AsRef<ArrayData> for ListArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for ListArray

source§

fn clone(&self) -> ListArray

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ListArray

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl IntoArrayData for ListArray

source§

impl IntoCanonical for ListArray

source§

fn into_canonical(self) -> VortexResult<Canonical>

source§

fn into_arrow(self) -> VortexResult<ArrayRef>
where - Self: Sized,

source§

impl ScalarAtFn<ListArray> for ListEncoding

source§

fn scalar_at(&self, array: &ListArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<ListArray> for ListEncoding

source§

fn slice( + Self: Sized,

source§

impl ScalarAtFn<ListArray> for ListEncoding

source§

fn scalar_at(&self, array: &ListArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<ListArray> for ListEncoding

source§

fn slice( &self, array: &ListArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.ListEncoding.html b/docs/rust/doc/vortex_array/array/struct.ListEncoding.html index fc6db3439a..8478c2abfd 100644 --- a/docs/rust/doc/vortex_array/array/struct.ListEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.ListEncoding.html @@ -1,6 +1,6 @@ ListEncoding in vortex_array::array - Rust

Struct vortex_array::array::ListEncoding

source ·
pub struct ListEncoding;
Expand description

The array encoding

Trait Implementations§

source§

impl ComputeVTable for ListEncoding

source§

fn scalar_at_fn(&self) -> Option<&dyn ScalarAtFn<ArrayData>>

Single item indexing on Vortex arrays. Read more
source§

fn slice_fn(&self) -> Option<&dyn SliceFn<ArrayData>>

Perform zero-copy slicing of an array. Read more
source§

fn binary_boolean_fn(&self) -> Option<&dyn BinaryBooleanFn<ArrayData>>

Implementation of binary boolean logic operations. Read more
source§

fn cast_fn(&self) -> Option<&dyn CastFn<ArrayData>>

Implemented for arrays that can be casted to different types. Read more
source§

fn compare_fn(&self) -> Option<&dyn CompareFn<ArrayData>>

Binary operator implementation for arrays against other arrays. Read more
source§

fn fill_forward_fn(&self) -> Option<&dyn FillForwardFn<ArrayData>>

Array function that returns new arrays a non-null value is repeated across runs of nulls. Read more
source§

fn fill_null_fn(&self) -> Option<&dyn FillNullFn<ArrayData>>

Fill null values with given desired value. Resulting array is NonNullable Read more
source§

fn filter_fn(&self) -> Option<&dyn FilterFn<ArrayData>>

Filter an array with a given mask. Read more
source§

fn invert_fn(&self) -> Option<&dyn InvertFn<ArrayData>>

Invert a boolean array. Converts true -> false, false -> true, null -> null. Read more
source§

fn like_fn(&self) -> Option<&dyn LikeFn<ArrayData>>

Perform a SQL LIKE operation on two arrays. Read more
source§

fn search_sorted_fn(&self) -> Option<&dyn SearchSortedFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

fn search_sorted_usize_fn(&self) -> Option<&dyn SearchSortedUsizeFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

fn subtract_scalar_fn(&self) -> Option<&dyn SubtractScalarFn<ArrayData>>

Broadcast subtraction of scalar from Vortex array. Read more
source§

fn take_fn(&self) -> Option<&dyn TakeFn<ArrayData>>

Take a set of indices from an array. This often forces allocations and decoding of -the receiver. Read more
source§

impl Debug for ListEncoding

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Encoding for ListEncoding

source§

impl EncodingVTable for ListEncoding

source§

fn id(&self) -> EncodingId

source§

fn as_any(&self) -> &dyn Any

source§

impl ScalarAtFn<ListArray> for ListEncoding

source§

fn scalar_at(&self, array: &ListArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<ListArray> for ListEncoding

source§

fn slice( +the receiver. Read more

source§

impl Debug for ListEncoding

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Encoding for ListEncoding

source§

impl EncodingVTable for ListEncoding

source§

fn id(&self) -> EncodingId

source§

fn as_any(&self) -> &dyn Any

source§

impl ScalarAtFn<ListArray> for ListEncoding

source§

fn scalar_at(&self, array: &ListArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<ListArray> for ListEncoding

source§

fn slice( &self, array: &ListArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.NullArray.html b/docs/rust/doc/vortex_array/array/struct.NullArray.html index 7895d38380..7a238c0339 100644 --- a/docs/rust/doc/vortex_array/array/struct.NullArray.html +++ b/docs/rust/doc/vortex_array/array/struct.NullArray.html @@ -2,7 +2,7 @@

Preferred in cases where a backtrace isn’t needed, like when trying multiple encoding to go down different code paths.

source§

impl NullArray

source

pub fn new(len: usize) -> Self

Trait Implementations§

source§

impl AsRef<ArrayData> for NullArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for NullArray

source§

fn clone(&self) -> NullArray

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NullArray

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl IntoArrayData for NullArray

source§

impl IntoCanonical for NullArray

source§

fn into_canonical(self) -> VortexResult<Canonical>

source§

fn into_arrow(self) -> VortexResult<ArrayRef>
where - Self: Sized,

source§

impl ScalarAtFn<NullArray> for NullEncoding

source§

fn scalar_at(&self, _array: &NullArray, _index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<NullArray> for NullEncoding

source§

fn slice( + Self: Sized,

source§

impl ScalarAtFn<NullArray> for NullEncoding

source§

fn scalar_at(&self, _array: &NullArray, _index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<NullArray> for NullEncoding

source§

fn slice( &self, _array: &NullArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.NullEncoding.html b/docs/rust/doc/vortex_array/array/struct.NullEncoding.html index b18960015e..8d71ad3021 100644 --- a/docs/rust/doc/vortex_array/array/struct.NullEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.NullEncoding.html @@ -1,6 +1,6 @@ NullEncoding in vortex_array::array - Rust

Struct vortex_array::array::NullEncoding

source ·
pub struct NullEncoding;
Expand description

The array encoding

Trait Implementations§

source§

impl ComputeVTable for NullEncoding

source§

fn scalar_at_fn(&self) -> Option<&dyn ScalarAtFn<ArrayData>>

Single item indexing on Vortex arrays. Read more
source§

fn slice_fn(&self) -> Option<&dyn SliceFn<ArrayData>>

Perform zero-copy slicing of an array. Read more
source§

fn take_fn(&self) -> Option<&dyn TakeFn<ArrayData>>

Take a set of indices from an array. This often forces allocations and decoding of -the receiver. Read more
source§

fn binary_boolean_fn(&self) -> Option<&dyn BinaryBooleanFn<ArrayData>>

Implementation of binary boolean logic operations. Read more
source§

fn cast_fn(&self) -> Option<&dyn CastFn<ArrayData>>

Implemented for arrays that can be casted to different types. Read more
source§

fn compare_fn(&self) -> Option<&dyn CompareFn<ArrayData>>

Binary operator implementation for arrays against other arrays. Read more
source§

fn fill_forward_fn(&self) -> Option<&dyn FillForwardFn<ArrayData>>

Array function that returns new arrays a non-null value is repeated across runs of nulls. Read more
source§

fn fill_null_fn(&self) -> Option<&dyn FillNullFn<ArrayData>>

Fill null values with given desired value. Resulting array is NonNullable Read more
source§

fn filter_fn(&self) -> Option<&dyn FilterFn<ArrayData>>

Filter an array with a given mask. Read more
source§

fn invert_fn(&self) -> Option<&dyn InvertFn<ArrayData>>

Invert a boolean array. Converts true -> false, false -> true, null -> null. Read more
source§

fn like_fn(&self) -> Option<&dyn LikeFn<ArrayData>>

Perform a SQL LIKE operation on two arrays. Read more
source§

fn search_sorted_fn(&self) -> Option<&dyn SearchSortedFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

fn search_sorted_usize_fn(&self) -> Option<&dyn SearchSortedUsizeFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

fn subtract_scalar_fn(&self) -> Option<&dyn SubtractScalarFn<ArrayData>>

Broadcast subtraction of scalar from Vortex array. Read more
source§

impl Debug for NullEncoding

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Encoding for NullEncoding

source§

impl EncodingVTable for NullEncoding

source§

fn id(&self) -> EncodingId

source§

fn as_any(&self) -> &dyn Any

source§

impl ScalarAtFn<NullArray> for NullEncoding

source§

fn scalar_at(&self, _array: &NullArray, _index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<NullArray> for NullEncoding

source§

fn slice( +the receiver. Read more

source§

fn binary_boolean_fn(&self) -> Option<&dyn BinaryBooleanFn<ArrayData>>

Implementation of binary boolean logic operations. Read more
source§

fn cast_fn(&self) -> Option<&dyn CastFn<ArrayData>>

Implemented for arrays that can be casted to different types. Read more
source§

fn compare_fn(&self) -> Option<&dyn CompareFn<ArrayData>>

Binary operator implementation for arrays against other arrays. Read more
source§

fn fill_forward_fn(&self) -> Option<&dyn FillForwardFn<ArrayData>>

Array function that returns new arrays a non-null value is repeated across runs of nulls. Read more
source§

fn fill_null_fn(&self) -> Option<&dyn FillNullFn<ArrayData>>

Fill null values with given desired value. Resulting array is NonNullable Read more
source§

fn filter_fn(&self) -> Option<&dyn FilterFn<ArrayData>>

Filter an array with a given mask. Read more
source§

fn invert_fn(&self) -> Option<&dyn InvertFn<ArrayData>>

Invert a boolean array. Converts true -> false, false -> true, null -> null. Read more
source§

fn like_fn(&self) -> Option<&dyn LikeFn<ArrayData>>

Perform a SQL LIKE operation on two arrays. Read more
source§

fn search_sorted_fn(&self) -> Option<&dyn SearchSortedFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

fn search_sorted_usize_fn(&self) -> Option<&dyn SearchSortedUsizeFn<ArrayData>>

Perform a search over an ordered array. Read more
source§

fn subtract_scalar_fn(&self) -> Option<&dyn SubtractScalarFn<ArrayData>>

Broadcast subtraction of scalar from Vortex array. Read more

source§

impl Debug for NullEncoding

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Encoding for NullEncoding

source§

impl EncodingVTable for NullEncoding

source§

fn id(&self) -> EncodingId

source§

fn as_any(&self) -> &dyn Any

source§

impl ScalarAtFn<NullArray> for NullEncoding

source§

fn scalar_at(&self, _array: &NullArray, _index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<NullArray> for NullEncoding

source§

fn slice( &self, _array: &NullArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.PrimitiveArray.html b/docs/rust/doc/vortex_array/array/struct.PrimitiveArray.html index ee845b29f4..598f1f12dc 100644 --- a/docs/rust/doc/vortex_array/array/struct.PrimitiveArray.html +++ b/docs/rust/doc/vortex_array/array/struct.PrimitiveArray.html @@ -14,15 +14,15 @@ &self, array: &PrimitiveArray, index: usize, -) -> VortexResult<Scalar>

source§

impl SearchSortedFn<PrimitiveArray> for PrimitiveEncoding

source§

fn search_sorted( +) -> VortexResult<Scalar>

source§

impl SearchSortedFn<PrimitiveArray> for PrimitiveEncoding

source§

fn search_sorted( &self, array: &PrimitiveArray, - value: &Scalar, + value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>

source§

fn search_sorted_many( &self, array: &Array, - values: &[Scalar], + values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

Bulk search for many values.
source§

impl SearchSortedUsizeFn<PrimitiveArray> for PrimitiveEncoding

source§

fn search_sorted_usize( &self, @@ -48,7 +48,7 @@ ) -> VortexResult<StatsSet>

Compute the requested statistic. Can return additional stats.
source§

impl SubtractScalarFn<PrimitiveArray> for PrimitiveEncoding

source§

fn subtract_scalar( &self, array: &PrimitiveArray, - to_subtract: &Scalar, + to_subtract: &Scalar, ) -> VortexResult<ArrayData>

source§

impl TakeFn<PrimitiveArray> for PrimitiveEncoding

source§

fn take( &self, array: &PrimitiveArray, diff --git a/docs/rust/doc/vortex_array/array/struct.PrimitiveEncoding.html b/docs/rust/doc/vortex_array/array/struct.PrimitiveEncoding.html index f459b94e88..aa1885c079 100644 --- a/docs/rust/doc/vortex_array/array/struct.PrimitiveEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.PrimitiveEncoding.html @@ -8,15 +8,15 @@ &self, array: &PrimitiveArray, index: usize, -) -> VortexResult<Scalar>

source§

impl SearchSortedFn<PrimitiveArray> for PrimitiveEncoding

source§

fn search_sorted( +) -> VortexResult<Scalar>

source§

impl SearchSortedFn<PrimitiveArray> for PrimitiveEncoding

source§

fn search_sorted( &self, array: &PrimitiveArray, - value: &Scalar, + value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>

source§

fn search_sorted_many( &self, array: &Array, - values: &[Scalar], + values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

Bulk search for many values.
source§

impl SearchSortedUsizeFn<PrimitiveArray> for PrimitiveEncoding

source§

fn search_sorted_usize( &self, @@ -42,7 +42,7 @@ ) -> VortexResult<StatsSet>

Compute the requested statistic. Can return additional stats.
source§

impl SubtractScalarFn<PrimitiveArray> for PrimitiveEncoding

source§

fn subtract_scalar( &self, array: &PrimitiveArray, - to_subtract: &Scalar, + to_subtract: &Scalar, ) -> VortexResult<ArrayData>

source§

impl TakeFn<PrimitiveArray> for PrimitiveEncoding

source§

fn take( &self, array: &PrimitiveArray, diff --git a/docs/rust/doc/vortex_array/array/struct.SparseArray.html b/docs/rust/doc/vortex_array/array/struct.SparseArray.html index c72747f592..4840648602 100644 --- a/docs/rust/doc/vortex_array/array/struct.SparseArray.html +++ b/docs/rust/doc/vortex_array/array/struct.SparseArray.html @@ -5,26 +5,26 @@ indices: ArrayData, values: ArrayData, len: usize, - fill_value: Scalar, + fill_value: Scalar, ) -> VortexResult<Self>

source

pub fn try_new_from_patches( patches: Patches, len: usize, indices_offset: usize, - fill_value: Scalar, -) -> VortexResult<Self>

source

pub fn indices_offset(&self) -> usize

source

pub fn patches(&self) -> Patches

source

pub fn resolved_patches(&self) -> VortexResult<Patches>

source

pub fn fill_scalar(&self) -> Scalar

Trait Implementations§

source§

impl AsRef<ArrayData> for SparseArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for SparseArray

source§

fn clone(&self) -> SparseArray

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SparseArray

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl ExtensionArrayTrait for SparseArray

source§

fn storage_data(&self) -> ArrayData

Returns the underlying ArrayData, without the [ExtDType].
source§

fn ext_dtype(&self) -> &Arc<ExtDType>

Returns the extension logical [DType].
source§

impl FilterFn<SparseArray> for SparseEncoding

source§

fn filter( + fill_value: Scalar, +) -> VortexResult<Self>

source

pub fn indices_offset(&self) -> usize

source

pub fn patches(&self) -> Patches

source

pub fn resolved_patches(&self) -> VortexResult<Patches>

source

pub fn fill_scalar(&self) -> Scalar

Trait Implementations§

source§

impl AsRef<ArrayData> for SparseArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for SparseArray

source§

fn clone(&self) -> SparseArray

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SparseArray

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl ExtensionArrayTrait for SparseArray

source§

fn storage_data(&self) -> ArrayData

Returns the underlying ArrayData, without the [ExtDType].
source§

fn ext_dtype(&self) -> &Arc<ExtDType>

Returns the extension logical [DType].
source§

impl FilterFn<SparseArray> for SparseEncoding

source§

fn filter( &self, array: &SparseArray, mask: FilterMask, ) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl IntoArrayData for SparseArray

source§

impl IntoCanonical for SparseArray

source§

fn into_canonical(self) -> VortexResult<Canonical>

source§

fn into_arrow(self) -> VortexResult<ArrayRef>
where - Self: Sized,

source§

impl InvertFn<SparseArray> for SparseEncoding

source§

fn invert(&self, array: &SparseArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl PrimitiveArrayTrait for SparseArray

source§

fn ptype(&self) -> PType

source§

impl ScalarAtFn<SparseArray> for SparseEncoding

source§

fn scalar_at(&self, array: &SparseArray, index: usize) -> VortexResult<Scalar>

source§

impl SearchSortedFn<SparseArray> for SparseEncoding

source§

impl InvertFn<SparseArray> for SparseEncoding

source§

fn invert(&self, array: &SparseArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl PrimitiveArrayTrait for SparseArray

source§

fn ptype(&self) -> PType

source§

impl ScalarAtFn<SparseArray> for SparseEncoding

source§

fn scalar_at(&self, array: &SparseArray, index: usize) -> VortexResult<Scalar>

source§

impl SearchSortedFn<SparseArray> for SparseEncoding

source§

fn search_sorted( &self, array: &SparseArray, - value: &Scalar, + value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>

source§

fn search_sorted_many( &self, array: &Array, - values: &[Scalar], + values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

Bulk search for many values.
source§

impl SearchSortedUsizeFn<SparseArray> for SparseEncoding

source§

fn search_sorted_usize( &self, diff --git a/docs/rust/doc/vortex_array/array/struct.SparseEncoding.html b/docs/rust/doc/vortex_array/array/struct.SparseEncoding.html index f18f7bb3fa..6ba48ec54c 100644 --- a/docs/rust/doc/vortex_array/array/struct.SparseEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.SparseEncoding.html @@ -4,15 +4,15 @@ &self, array: &SparseArray, mask: FilterMask, -) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl InvertFn<SparseArray> for SparseEncoding

source§

fn invert(&self, array: &SparseArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl ScalarAtFn<SparseArray> for SparseEncoding

source§

fn scalar_at(&self, array: &SparseArray, index: usize) -> VortexResult<Scalar>

source§

impl SearchSortedFn<SparseArray> for SparseEncoding

source§

fn search_sorted( +) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl InvertFn<SparseArray> for SparseEncoding

source§

fn invert(&self, array: &SparseArray) -> VortexResult<ArrayData>

Logically invert a boolean array. Converts true -> false, false -> true, null -> null.
source§

impl ScalarAtFn<SparseArray> for SparseEncoding

source§

fn scalar_at(&self, array: &SparseArray, index: usize) -> VortexResult<Scalar>

source§

impl SearchSortedFn<SparseArray> for SparseEncoding

source§

fn search_sorted( &self, array: &SparseArray, - value: &Scalar, + value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>

source§

fn search_sorted_many( &self, array: &Array, - values: &[Scalar], + values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

Bulk search for many values.
source§

impl SearchSortedUsizeFn<SparseArray> for SparseEncoding

source§

fn search_sorted_usize( &self, diff --git a/docs/rust/doc/vortex_array/array/struct.StructArray.html b/docs/rust/doc/vortex_array/array/struct.StructArray.html index d9d0b92b44..1f4639d2de 100644 --- a/docs/rust/doc/vortex_array/array/struct.StructArray.html +++ b/docs/rust/doc/vortex_array/array/struct.StructArray.html @@ -19,7 +19,7 @@ mask: FilterMask, ) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl IntoArrayData for StructArray

source§

impl IntoCanonical for StructArray

source§

fn into_canonical(self) -> VortexResult<Canonical>

StructEncoding is the canonical form for a [DType::Struct] array, so return self.

source§

fn into_arrow(self) -> VortexResult<ArrayRef>
where - Self: Sized,

source§

impl ScalarAtFn<StructArray> for StructEncoding

source§

fn scalar_at(&self, array: &StructArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<StructArray> for StructEncoding

source§

fn slice( + Self: Sized,

source§

impl ScalarAtFn<StructArray> for StructEncoding

source§

fn scalar_at(&self, array: &StructArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<StructArray> for StructEncoding

source§

fn slice( &self, array: &StructArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.StructEncoding.html b/docs/rust/doc/vortex_array/array/struct.StructEncoding.html index 09786338bd..cdc9f41194 100644 --- a/docs/rust/doc/vortex_array/array/struct.StructEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.StructEncoding.html @@ -4,7 +4,7 @@ &self, array: &StructArray, mask: FilterMask, -) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl ScalarAtFn<StructArray> for StructEncoding

source§

fn scalar_at(&self, array: &StructArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<StructArray> for StructEncoding

source§

fn slice( +) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl ScalarAtFn<StructArray> for StructEncoding

source§

fn scalar_at(&self, array: &StructArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<StructArray> for StructEncoding

source§

fn slice( &self, array: &StructArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.VarBinArray.html b/docs/rust/doc/vortex_array/array/struct.VarBinArray.html index a4b3f1a3b2..e5294a3b47 100644 --- a/docs/rust/doc/vortex_array/array/struct.VarBinArray.html +++ b/docs/rust/doc/vortex_array/array/struct.VarBinArray.html @@ -6,7 +6,7 @@ bytes: ArrayData, dtype: DType, validity: Validity, -) -> VortexResult<Self>

source

pub fn offsets(&self) -> ArrayData

source

pub fn first_offset<T: NativePType + for<'a> TryFrom<&'a Scalar, Error = VortexError>>( +) -> VortexResult<Self>

source

pub fn offsets(&self) -> ArrayData

source

pub fn first_offset<T: NativePType + for<'a> TryFrom<&'a Scalar, Error = VortexError>>( &self, ) -> VortexResult<T>

source

pub fn bytes(&self) -> ArrayData

Access the value bytes child array

§Note
@@ -34,7 +34,7 @@
§Note
&self, array: &VarBinArray, mask: FilterMask, -) -> VortexResult<ArrayData>
Filter an array by the provided predicate.
source§

impl From<Vec<&[u8]>> for VarBinArray

source§

fn from(value: Vec<&[u8]>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<&str>> for VarBinArray

source§

fn from(value: Vec<&str>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<String>> for VarBinArray

source§

fn from(value: Vec<String>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Vec<u8>>> for VarBinArray

source§

fn from(value: Vec<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> FromIterator<Option<&'a [u8]>> for VarBinArray

source§

fn from_iter<T: IntoIterator<Item = Option<&'a [u8]>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl<'a> FromIterator<Option<&'a str>> for VarBinArray

source§

fn from_iter<T: IntoIterator<Item = Option<&'a str>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<String>> for VarBinArray

source§

fn from_iter<T: IntoIterator<Item = Option<String>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<Vec<u8>>> for VarBinArray

source§

fn from_iter<T: IntoIterator<Item = Option<Vec<u8>>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl IntoArrayData for VarBinArray

source§

impl IntoCanonical for VarBinArray

source§

fn into_canonical(self) -> VortexResult<Canonical>

source§

fn into_arrow(self) -> VortexResult<ArrayRef>

source§

impl ScalarAtFn<VarBinArray> for VarBinEncoding

source§

fn scalar_at(&self, array: &VarBinArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<VarBinArray> for VarBinEncoding

source§

fn slice( +) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl From<Vec<&[u8]>> for VarBinArray

source§

fn from(value: Vec<&[u8]>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<&str>> for VarBinArray

source§

fn from(value: Vec<&str>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<String>> for VarBinArray

source§

fn from(value: Vec<String>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Vec<u8>>> for VarBinArray

source§

fn from(value: Vec<Vec<u8>>) -> Self

Converts to this type from the input type.
source§

impl<'a> FromIterator<Option<&'a [u8]>> for VarBinArray

source§

fn from_iter<T: IntoIterator<Item = Option<&'a [u8]>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl<'a> FromIterator<Option<&'a str>> for VarBinArray

source§

fn from_iter<T: IntoIterator<Item = Option<&'a str>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<String>> for VarBinArray

source§

fn from_iter<T: IntoIterator<Item = Option<String>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<Vec<u8>>> for VarBinArray

source§

fn from_iter<T: IntoIterator<Item = Option<Vec<u8>>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl IntoArrayData for VarBinArray

source§

impl IntoCanonical for VarBinArray

source§

fn into_canonical(self) -> VortexResult<Canonical>

source§

fn into_arrow(self) -> VortexResult<ArrayRef>

source§

impl ScalarAtFn<VarBinArray> for VarBinEncoding

source§

fn scalar_at(&self, array: &VarBinArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<VarBinArray> for VarBinEncoding

source§

fn slice( &self, array: &VarBinArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.VarBinEncoding.html b/docs/rust/doc/vortex_array/array/struct.VarBinEncoding.html index 51ca13c48e..d76f346153 100644 --- a/docs/rust/doc/vortex_array/array/struct.VarBinEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.VarBinEncoding.html @@ -10,7 +10,7 @@ &self, array: &VarBinArray, mask: FilterMask, -) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl ScalarAtFn<VarBinArray> for VarBinEncoding

source§

fn scalar_at(&self, array: &VarBinArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<VarBinArray> for VarBinEncoding

source§

fn slice( +) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl ScalarAtFn<VarBinArray> for VarBinEncoding

source§

fn scalar_at(&self, array: &VarBinArray, index: usize) -> VortexResult<Scalar>

source§

impl SliceFn<VarBinArray> for VarBinEncoding

source§

fn slice( &self, array: &VarBinArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.VarBinViewArray.html b/docs/rust/doc/vortex_array/array/struct.VarBinViewArray.html index a6ec8447da..08c6aa8a3d 100644 --- a/docs/rust/doc/vortex_array/array/struct.VarBinViewArray.html +++ b/docs/rust/doc/vortex_array/array/struct.VarBinViewArray.html @@ -46,7 +46,7 @@

§Panics
&self, array: &VarBinViewArray, index: usize, -) -> VortexResult<Scalar>
source§

impl SliceFn<VarBinViewArray> for VarBinViewEncoding

source§

fn slice( +) -> VortexResult<Scalar>

source§

impl SliceFn<VarBinViewArray> for VarBinViewEncoding

source§

fn slice( &self, array: &VarBinViewArray, start: usize, diff --git a/docs/rust/doc/vortex_array/array/struct.VarBinViewEncoding.html b/docs/rust/doc/vortex_array/array/struct.VarBinViewEncoding.html index cd220afb9a..bf727ff27f 100644 --- a/docs/rust/doc/vortex_array/array/struct.VarBinViewEncoding.html +++ b/docs/rust/doc/vortex_array/array/struct.VarBinViewEncoding.html @@ -4,7 +4,7 @@ &self, array: &VarBinViewArray, index: usize, -) -> VortexResult<Scalar>

source§

impl SliceFn<VarBinViewArray> for VarBinViewEncoding

source§

fn slice( +) -> VortexResult<Scalar>

source§

impl SliceFn<VarBinViewArray> for VarBinViewEncoding

source§

fn slice( &self, array: &VarBinViewArray, start: usize, diff --git a/docs/rust/doc/vortex_array/builders/struct.BinaryBuilder.html b/docs/rust/doc/vortex_array/builders/struct.BinaryBuilder.html index 9f0dc1441e..c93d0e92ce 100644 --- a/docs/rust/doc/vortex_array/builders/struct.BinaryBuilder.html +++ b/docs/rust/doc/vortex_array/builders/struct.BinaryBuilder.html @@ -1,6 +1,6 @@ BinaryBuilder in vortex_array::builders - Rust

Struct vortex_array::builders::BinaryBuilder

source ·
pub struct BinaryBuilder { /* private fields */ }

Implementations§

source§

impl BinaryBuilder

source

pub fn with_capacity(nullability: Nullability, capacity: usize) -> Self

source

pub fn append_value<S: AsRef<[u8]>>(&mut self, value: S)

source

pub fn append_option<S: AsRef<[u8]>>(&mut self, value: Option<S>)

Trait Implementations§

source§

impl ArrayBuilder for BinaryBuilder

source§

fn as_any(&self) -> &dyn Any

source§

fn as_any_mut(&mut self) -> &mut dyn Any

source§

fn dtype(&self) -> &DType

source§

fn len(&self) -> usize

source§

fn append_zeros(&mut self, n: usize)

Appends n “zero” values to the array.
source§

fn append_nulls(&mut self, n: usize)

Appends n “null” values to the array.
source§

fn finish(&mut self) -> VortexResult<ArrayData>

source§

fn is_empty(&self) -> bool

source§

fn append_zero(&mut self)

Append a “zero” value to the array.
source§

fn append_null(&mut self)

Append a “null” value to the array.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArrayBuilderExt for T
where - T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where + T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an diff --git a/docs/rust/doc/vortex_array/builders/struct.BoolBuilder.html b/docs/rust/doc/vortex_array/builders/struct.BoolBuilder.html index abc5d64c20..249c9f5790 100644 --- a/docs/rust/doc/vortex_array/builders/struct.BoolBuilder.html +++ b/docs/rust/doc/vortex_array/builders/struct.BoolBuilder.html @@ -1,6 +1,6 @@ BoolBuilder in vortex_array::builders - Rust

Struct vortex_array::builders::BoolBuilder

source ·
pub struct BoolBuilder { /* private fields */ }

Implementations§

source§

impl BoolBuilder

source

pub fn new(nullability: Nullability) -> Self

source

pub fn with_capacity(nullability: Nullability, capacity: usize) -> Self

source

pub fn append_value(&mut self, value: bool)

source

pub fn append_values(&mut self, value: bool, n: usize)

source

pub fn append_option(&mut self, value: Option<bool>)

Trait Implementations§

source§

impl ArrayBuilder for BoolBuilder

source§

fn as_any(&self) -> &dyn Any

source§

fn as_any_mut(&mut self) -> &mut dyn Any

source§

fn dtype(&self) -> &DType

source§

fn len(&self) -> usize

source§

fn append_zeros(&mut self, n: usize)

Appends n “zero” values to the array.
source§

fn append_nulls(&mut self, n: usize)

Appends n “null” values to the array.
source§

fn finish(&mut self) -> VortexResult<ArrayData>

source§

fn is_empty(&self) -> bool

source§

fn append_zero(&mut self)

Append a “zero” value to the array.
source§

fn append_null(&mut self)

Append a “null” value to the array.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArrayBuilderExt for T
where - T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where + T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an diff --git a/docs/rust/doc/vortex_array/builders/struct.ExtensionBuilder.html b/docs/rust/doc/vortex_array/builders/struct.ExtensionBuilder.html index a298209db2..cf463f17bc 100644 --- a/docs/rust/doc/vortex_array/builders/struct.ExtensionBuilder.html +++ b/docs/rust/doc/vortex_array/builders/struct.ExtensionBuilder.html @@ -1,9 +1,9 @@ -ExtensionBuilder in vortex_array::builders - Rust

Struct vortex_array::builders::ExtensionBuilder

source ·
pub struct ExtensionBuilder { /* private fields */ }

Implementations§

source§

impl ExtensionBuilder

source

pub fn new(ext_dtype: Arc<ExtDType>) -> Self

source

pub fn with_capacity(ext_dtype: Arc<ExtDType>, capacity: usize) -> Self

source

pub fn append_value(&mut self, value: ExtScalar<'_>) -> VortexResult<()>

source

pub fn append_option( +ExtensionBuilder in vortex_array::builders - Rust

Struct vortex_array::builders::ExtensionBuilder

source ·
pub struct ExtensionBuilder { /* private fields */ }

Implementations§

source§

impl ExtensionBuilder

source

pub fn new(ext_dtype: Arc<ExtDType>) -> Self

source

pub fn with_capacity(ext_dtype: Arc<ExtDType>, capacity: usize) -> Self

source

pub fn append_value(&mut self, value: ExtScalar<'_>) -> VortexResult<()>

source

pub fn append_option( &mut self, - value: Option<ExtScalar<'_>>, + value: Option<ExtScalar<'_>>, ) -> VortexResult<()>

Trait Implementations§

source§

impl ArrayBuilder for ExtensionBuilder

source§

fn as_any(&self) -> &dyn Any

source§

fn as_any_mut(&mut self) -> &mut dyn Any

source§

fn dtype(&self) -> &DType

source§

fn len(&self) -> usize

source§

fn append_zeros(&mut self, n: usize)

Appends n “zero” values to the array.
source§

fn append_nulls(&mut self, n: usize)

Appends n “null” values to the array.
source§

fn finish(&mut self) -> VortexResult<ArrayData>

source§

fn is_empty(&self) -> bool

source§

fn append_zero(&mut self)

Append a “zero” value to the array.
source§

fn append_null(&mut self)

Append a “null” value to the array.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArrayBuilderExt for T
where - T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where + T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an diff --git a/docs/rust/doc/vortex_array/builders/struct.NullBuilder.html b/docs/rust/doc/vortex_array/builders/struct.NullBuilder.html index d0fffc0073..97cce0def1 100644 --- a/docs/rust/doc/vortex_array/builders/struct.NullBuilder.html +++ b/docs/rust/doc/vortex_array/builders/struct.NullBuilder.html @@ -1,6 +1,6 @@ NullBuilder in vortex_array::builders - Rust

Struct vortex_array::builders::NullBuilder

source ·
pub struct NullBuilder { /* private fields */ }

Implementations§

source§

impl NullBuilder

source

pub fn new() -> Self

Trait Implementations§

source§

impl ArrayBuilder for NullBuilder

source§

fn as_any(&self) -> &dyn Any

source§

fn as_any_mut(&mut self) -> &mut dyn Any

source§

fn dtype(&self) -> &DType

source§

fn len(&self) -> usize

source§

fn append_zeros(&mut self, n: usize)

Appends n “zero” values to the array.
source§

fn append_nulls(&mut self, n: usize)

Appends n “null” values to the array.
source§

fn finish(&mut self) -> VortexResult<ArrayData>

source§

fn is_empty(&self) -> bool

source§

fn append_zero(&mut self)

Append a “zero” value to the array.
source§

fn append_null(&mut self)

Append a “null” value to the array.
source§

impl Default for NullBuilder

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArrayBuilderExt for T
where - T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where + T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an diff --git a/docs/rust/doc/vortex_array/builders/struct.PrimitiveBuilder.html b/docs/rust/doc/vortex_array/builders/struct.PrimitiveBuilder.html index 8b77994258..9e46789562 100644 --- a/docs/rust/doc/vortex_array/builders/struct.PrimitiveBuilder.html +++ b/docs/rust/doc/vortex_array/builders/struct.PrimitiveBuilder.html @@ -2,7 +2,7 @@ T: Unpin,

§

impl<T> UnwindSafe for PrimitiveBuilder<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArrayBuilderExt for T
where - T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where + T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an diff --git a/docs/rust/doc/vortex_array/builders/struct.Utf8Builder.html b/docs/rust/doc/vortex_array/builders/struct.Utf8Builder.html index 8355bd12ee..0230e2627a 100644 --- a/docs/rust/doc/vortex_array/builders/struct.Utf8Builder.html +++ b/docs/rust/doc/vortex_array/builders/struct.Utf8Builder.html @@ -1,6 +1,6 @@ Utf8Builder in vortex_array::builders - Rust

Struct vortex_array::builders::Utf8Builder

source ·
pub struct Utf8Builder { /* private fields */ }

Implementations§

source§

impl Utf8Builder

source

pub fn with_capacity(nullability: Nullability, capacity: usize) -> Self

source

pub fn append_value<S: AsRef<str>>(&mut self, value: S)

source

pub fn append_option<S: AsRef<str>>(&mut self, value: Option<S>)

Trait Implementations§

source§

impl ArrayBuilder for Utf8Builder

source§

fn as_any(&self) -> &dyn Any

source§

fn as_any_mut(&mut self) -> &mut dyn Any

source§

fn dtype(&self) -> &DType

source§

fn len(&self) -> usize

source§

fn append_zeros(&mut self, n: usize)

Appends n “zero” values to the array.
source§

fn append_nulls(&mut self, n: usize)

Appends n “null” values to the array.
source§

fn finish(&mut self) -> VortexResult<ArrayData>

source§

fn is_empty(&self) -> bool

source§

fn append_zero(&mut self)

Append a “zero” value to the array.
source§

fn append_null(&mut self)

Append a “null” value to the array.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArrayBuilderExt for T
where - T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where + T: ArrayBuilder + ?Sized,

source§

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an diff --git a/docs/rust/doc/vortex_array/builders/trait.ArrayBuilderExt.html b/docs/rust/doc/vortex_array/builders/trait.ArrayBuilderExt.html index 5e0eaaf9d7..5880300698 100644 --- a/docs/rust/doc/vortex_array/builders/trait.ArrayBuilderExt.html +++ b/docs/rust/doc/vortex_array/builders/trait.ArrayBuilderExt.html @@ -1,5 +1,5 @@ ArrayBuilderExt in vortex_array::builders - Rust

Trait vortex_array::builders::ArrayBuilderExt

source ·
pub trait ArrayBuilderExt: ArrayBuilder {
     // Provided method
-    fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()> { ... }
-}

Provided Methods§

source

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.

+ fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()> { ... } +}

Provided Methods§

source

fn append_scalar(&mut self, scalar: &Scalar) -> VortexResult<()>

A generic function to append a scalar to the builder.

Implementors§

source§

impl<T: ?Sized + ArrayBuilder> ArrayBuilderExt for T

\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/compute/fn.fill_null.html b/docs/rust/doc/vortex_array/compute/fn.fill_null.html index 815933e37c..244322e41d 100644 --- a/docs/rust/doc/vortex_array/compute/fn.fill_null.html +++ b/docs/rust/doc/vortex_array/compute/fn.fill_null.html @@ -1,4 +1,4 @@ fill_null in vortex_array::compute - Rust

Function vortex_array::compute::fill_null

source ·
pub fn fill_null(
     array: impl AsRef<ArrayData>,
-    fill_value: Scalar,
+    fill_value: Scalar,
 ) -> VortexResult<ArrayData>
\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/compute/fn.scalar_at.html b/docs/rust/doc/vortex_array/compute/fn.scalar_at.html index ab9ef9e260..8ee3bd1e1c 100644 --- a/docs/rust/doc/vortex_array/compute/fn.scalar_at.html +++ b/docs/rust/doc/vortex_array/compute/fn.scalar_at.html @@ -1,4 +1,4 @@ scalar_at in vortex_array::compute - Rust

Function vortex_array::compute::scalar_at

source ·
pub fn scalar_at(
     array: impl AsRef<ArrayData>,
     index: usize,
-) -> VortexResult<Scalar>
\ No newline at end of file +) -> VortexResult<Scalar>
\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/compute/fn.scalar_cmp.html b/docs/rust/doc/vortex_array/compute/fn.scalar_cmp.html index 508237469a..7c81b410e5 100644 --- a/docs/rust/doc/vortex_array/compute/fn.scalar_cmp.html +++ b/docs/rust/doc/vortex_array/compute/fn.scalar_cmp.html @@ -1 +1 @@ -scalar_cmp in vortex_array::compute - Rust

Function vortex_array::compute::scalar_cmp

source ·
pub fn scalar_cmp(lhs: &Scalar, rhs: &Scalar, operator: Operator) -> Scalar
\ No newline at end of file +scalar_cmp in vortex_array::compute - Rust

Function vortex_array::compute::scalar_cmp

source ·
pub fn scalar_cmp(lhs: &Scalar, rhs: &Scalar, operator: Operator) -> Scalar
\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/compute/fn.search_sorted.html b/docs/rust/doc/vortex_array/compute/fn.search_sorted.html index 5013a4b2b0..dcfb38aff2 100644 --- a/docs/rust/doc/vortex_array/compute/fn.search_sorted.html +++ b/docs/rust/doc/vortex_array/compute/fn.search_sorted.html @@ -1,4 +1,4 @@ -search_sorted in vortex_array::compute - Rust

Function vortex_array::compute::search_sorted

source ·
pub fn search_sorted<T: Into<Scalar>>(
+search_sorted in vortex_array::compute - Rust

Function vortex_array::compute::search_sorted

source ·
pub fn search_sorted<T: Into<Scalar>>(
     array: &ArrayData,
     target: T,
     side: SearchSortedSide,
diff --git a/docs/rust/doc/vortex_array/compute/fn.search_sorted_many.html b/docs/rust/doc/vortex_array/compute/fn.search_sorted_many.html
index ab9424aaf6..eda9c92738 100644
--- a/docs/rust/doc/vortex_array/compute/fn.search_sorted_many.html
+++ b/docs/rust/doc/vortex_array/compute/fn.search_sorted_many.html
@@ -1,4 +1,4 @@
-search_sorted_many in vortex_array::compute - Rust

Function vortex_array::compute::search_sorted_many

source ·
pub fn search_sorted_many<T: Into<Scalar> + Clone>(
+search_sorted_many in vortex_array::compute - Rust

Function vortex_array::compute::search_sorted_many

source ·
pub fn search_sorted_many<T: Into<Scalar> + Clone>(
     array: &ArrayData,
     targets: &[T],
     side: SearchSortedSide,
diff --git a/docs/rust/doc/vortex_array/compute/fn.subtract_scalar.html b/docs/rust/doc/vortex_array/compute/fn.subtract_scalar.html
index d65d1a6c59..e297728b55 100644
--- a/docs/rust/doc/vortex_array/compute/fn.subtract_scalar.html
+++ b/docs/rust/doc/vortex_array/compute/fn.subtract_scalar.html
@@ -1,4 +1,4 @@
 subtract_scalar in vortex_array::compute - Rust

Function vortex_array::compute::subtract_scalar

source ·
pub fn subtract_scalar(
     array: impl AsRef<ArrayData>,
-    to_subtract: &Scalar,
+    to_subtract: &Scalar,
 ) -> VortexResult<ArrayData>
\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/compute/trait.FillNullFn.html b/docs/rust/doc/vortex_array/compute/trait.FillNullFn.html index 348296b710..4a1b4d4ff2 100644 --- a/docs/rust/doc/vortex_array/compute/trait.FillNullFn.html +++ b/docs/rust/doc/vortex_array/compute/trait.FillNullFn.html @@ -3,14 +3,14 @@ fn fill_null( &self, array: &Array, - fill_value: Scalar, + fill_value: Scalar, ) -> VortexResult<ArrayData>; }
Expand description

Implementation of fill_null for an encoding.

SAFETY: the fill value is guaranteed to be non-null.

Required Methods§

source

fn fill_null( &self, array: &Array, - fill_value: Scalar, + fill_value: Scalar, ) -> VortexResult<ArrayData>

Implementors§

source§

impl FillNullFn<BoolArray> for BoolEncoding

source§

impl FillNullFn<ChunkedArray> for ChunkedEncoding

source§

impl<E> FillNullFn<ArrayData> for E
where E: FillNullFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/compute/trait.IndexOrd.html b/docs/rust/doc/vortex_array/compute/trait.IndexOrd.html index a0bf2c2833..70a484501d 100644 --- a/docs/rust/doc/vortex_array/compute/trait.IndexOrd.html +++ b/docs/rust/doc/vortex_array/compute/trait.IndexOrd.html @@ -9,4 +9,4 @@ fn index_ge(&self, idx: usize, elem: &V) -> bool { ... } }

Required Methods§

source

fn index_cmp(&self, idx: usize, elem: &V) -> Option<Ordering>

PartialOrd of the value at index idx with elem. For example, if self[idx] > elem, return Some(Greater).

-

Provided Methods§

source

fn index_lt(&self, idx: usize, elem: &V) -> bool

source

fn index_le(&self, idx: usize, elem: &V) -> bool

source

fn index_gt(&self, idx: usize, elem: &V) -> bool

source

fn index_ge(&self, idx: usize, elem: &V) -> bool

Implementations on Foreign Types§

source§

impl<T: PartialOrd> IndexOrd<T> for [T]

source§

fn index_cmp(&self, idx: usize, elem: &T) -> Option<Ordering>

Implementors§

\ No newline at end of file +

Provided Methods§

source

fn index_lt(&self, idx: usize, elem: &V) -> bool

source

fn index_le(&self, idx: usize, elem: &V) -> bool

source

fn index_gt(&self, idx: usize, elem: &V) -> bool

source

fn index_ge(&self, idx: usize, elem: &V) -> bool

Implementations on Foreign Types§

source§

impl<T: PartialOrd> IndexOrd<T> for [T]

source§

fn index_cmp(&self, idx: usize, elem: &T) -> Option<Ordering>

Implementors§

source§

impl IndexOrd<Scalar> for ArrayData

\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/compute/trait.ScalarAtFn.html b/docs/rust/doc/vortex_array/compute/trait.ScalarAtFn.html index 747587d577..df94f276a3 100644 --- a/docs/rust/doc/vortex_array/compute/trait.ScalarAtFn.html +++ b/docs/rust/doc/vortex_array/compute/trait.ScalarAtFn.html @@ -1,8 +1,8 @@ ScalarAtFn in vortex_array::compute - Rust

Trait vortex_array::compute::ScalarAtFn

source ·
pub trait ScalarAtFn<Array> {
     // Required method
-    fn scalar_at(&self, array: &Array, index: usize) -> VortexResult<Scalar>;
+    fn scalar_at(&self, array: &Array, index: usize) -> VortexResult<Scalar>;
 }
Expand description

Implementation of scalar_at for an encoding.

SAFETY: the index is guaranteed to be within the bounds of the ArrayData.

-

Required Methods§

source

fn scalar_at(&self, array: &Array, index: usize) -> VortexResult<Scalar>

Implementors§

source§

impl ScalarAtFn<BoolArray> for BoolEncoding

source§

impl ScalarAtFn<ChunkedArray> for ChunkedEncoding

source§

impl ScalarAtFn<ConstantArray> for ConstantEncoding

source§

impl ScalarAtFn<ExtensionArray> for ExtensionEncoding

source§

impl ScalarAtFn<ListArray> for ListEncoding

source§

impl ScalarAtFn<NullArray> for NullEncoding

source§

impl ScalarAtFn<PrimitiveArray> for PrimitiveEncoding

source§

impl ScalarAtFn<SparseArray> for SparseEncoding

source§

impl ScalarAtFn<StructArray> for StructEncoding

source§

impl ScalarAtFn<VarBinArray> for VarBinEncoding

source§

impl ScalarAtFn<VarBinViewArray> for VarBinViewEncoding

source§

impl<E> ScalarAtFn<ArrayData> for E
where +

Required Methods§

source

fn scalar_at(&self, array: &Array, index: usize) -> VortexResult<Scalar>

Implementors§

\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/compute/trait.SearchSortedFn.html b/docs/rust/doc/vortex_array/compute/trait.SearchSortedFn.html index b6612afe5c..8f9fc6c933 100644 --- a/docs/rust/doc/vortex_array/compute/trait.SearchSortedFn.html +++ b/docs/rust/doc/vortex_array/compute/trait.SearchSortedFn.html @@ -3,7 +3,7 @@ fn search_sorted( &self, array: &Array, - value: &Scalar, + value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>; @@ -11,7 +11,7 @@ fn search_sorted_many( &self, array: &Array, - values: &[Scalar], + values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>> { ... } }
Expand description

Searches for value assuming the array is sorted.

@@ -19,12 +19,12 @@

Required Methods§

source

fn search_sorted( &self, array: &Array, - value: &Scalar, + value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>

Provided Methods§

source

fn search_sorted_many( &self, array: &Array, - values: &[Scalar], + values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

Bulk search for many values.

Implementors§

source§

impl SearchSortedFn<ConstantArray> for ConstantEncoding

source§

impl SearchSortedFn<PrimitiveArray> for PrimitiveEncoding

source§

impl SearchSortedFn<SparseArray> for SparseEncoding

source§

impl<E> SearchSortedFn<ArrayData> for E
where diff --git a/docs/rust/doc/vortex_array/compute/trait.SubtractScalarFn.html b/docs/rust/doc/vortex_array/compute/trait.SubtractScalarFn.html index 183abe87f8..7ca71ca714 100644 --- a/docs/rust/doc/vortex_array/compute/trait.SubtractScalarFn.html +++ b/docs/rust/doc/vortex_array/compute/trait.SubtractScalarFn.html @@ -3,12 +3,12 @@ fn subtract_scalar( &self, array: &Array, - to_subtract: &Scalar, + to_subtract: &Scalar, ) -> VortexResult<ArrayData>; }

Required Methods§

source

fn subtract_scalar( &self, array: &Array, - to_subtract: &Scalar, + to_subtract: &Scalar, ) -> VortexResult<ArrayData>

Implementors§

\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/index.html b/docs/rust/doc/vortex_array/index.html index 3a33d13f20..cbf8601283 100644 --- a/docs/rust/doc/vortex_array/index.html +++ b/docs/rust/doc/vortex_array/index.html @@ -1,6 +1,6 @@ vortex_array - Rust

Crate vortex_array

source ·
Expand description

Vortex crate containing core logic for encoding and memory representation of arrays.

At the heart of Vortex are arrays and encodings. -Arrays are typed views of memory buffers that hold scalars. These +Arrays are typed views of memory buffers that hold scalars. These buffers can be held in a number of physical encodings to perform lightweight compression that exploits the particular data distribution of the array’s values.

Every data type recognized by Vortex also has a canonical physical encoding format, which diff --git a/docs/rust/doc/vortex_array/iter/trait.Accessor.html b/docs/rust/doc/vortex_array/iter/trait.Accessor.html index 362bdc869b..90c6428f12 100644 --- a/docs/rust/doc/vortex_array/iter/trait.Accessor.html +++ b/docs/rust/doc/vortex_array/iter/trait.Accessor.html @@ -10,4 +10,4 @@ fn decode_batch(&self, start_idx: usize) -> Vec<T> { ... } }

Expand description

Define the basic behavior required for batched iterators

Required Methods§

source

fn array_len(&self) -> usize

source

fn is_valid(&self, index: usize) -> bool

source

fn value_unchecked(&self, index: usize) -> T

source

fn array_validity(&self) -> Validity

Provided Methods§

source

fn batch_size(&self, start_idx: usize) -> usize

source

fn decode_batch(&self, start_idx: usize) -> Vec<T>

Implementors§

source§

impl<T> Accessor<T> for ConstantArray
where - T: Clone + TryFrom<Scalar, Error = VortexError>,

source§

impl<T: NativePType> Accessor<T> for PrimitiveArray

\ No newline at end of file + T: Clone + TryFrom<Scalar, Error = VortexError>,
source§

impl<T: NativePType> Accessor<T> for PrimitiveArray

\ No newline at end of file diff --git a/docs/rust/doc/vortex_array/patches/struct.Patches.html b/docs/rust/doc/vortex_array/patches/struct.Patches.html index 70eae2c2bd..94c6b4353d 100644 --- a/docs/rust/doc/vortex_array/patches/struct.Patches.html +++ b/docs/rust/doc/vortex_array/patches/struct.Patches.html @@ -3,8 +3,8 @@ &self, len: usize, dtype: &DType, -) -> VortexResult<PatchesMetadata>
source

pub fn get_patched(&self, index: usize) -> VortexResult<Option<Scalar>>

Get the patched value at a given index if it exists.

-
source

pub fn search_sorted<T: Into<Scalar>>( +) -> VortexResult<PatchesMetadata>

source

pub fn get_patched(&self, index: usize) -> VortexResult<Option<Scalar>>

Get the patched value at a given index if it exists.

+
source

pub fn search_sorted<T: Into<Scalar>>( &self, target: T, side: SearchSortedSide, diff --git a/docs/rust/doc/vortex_array/stats/struct.StatsSet.html b/docs/rust/doc/vortex_array/stats/struct.StatsSet.html index 7ed29ef2b7..b7cfbb993b 100644 --- a/docs/rust/doc/vortex_array/stats/struct.StatsSet.html +++ b/docs/rust/doc/vortex_array/stats/struct.StatsSet.html @@ -1,20 +1,20 @@ -StatsSet in vortex_array::stats - Rust

Struct vortex_array::stats::StatsSet

source ·
pub struct StatsSet { /* private fields */ }

Implementations§

source§

impl StatsSet

source

pub fn new_unchecked(values: Vec<(Stat, Scalar)>) -> Self

Create new StatSet without validating uniqueness of all the entries

+StatsSet in vortex_array::stats - Rust

Struct vortex_array::stats::StatsSet

source ·
pub struct StatsSet { /* private fields */ }

Implementations§

source§

impl StatsSet

source

pub fn new_unchecked(values: Vec<(Stat, Scalar)>) -> Self

Create new StatSet without validating uniqueness of all the entries

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn nulls(len: usize, dtype: &DType) -> Self

Specialized constructor for the case where the StatsSet represents an array consisting entirely of null values.

-
source

pub fn constant(scalar: &Scalar, length: usize) -> Self

source

pub fn bools_with_true_and_null_count( +

source

pub fn constant(scalar: &Scalar, length: usize) -> Self

source

pub fn bools_with_true_and_null_count( true_count: usize, null_count: usize, len: usize, -) -> Self

source

pub fn of<S: Into<Scalar>>(stat: Stat, value: S) -> Self

source

pub fn get(&self, stat: Stat) -> Option<&Scalar>

source

pub fn get_as<T: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( +) -> Self

source

pub fn of<S: Into<Scalar>>(stat: Stat, value: S) -> Self

source

pub fn get(&self, stat: Stat) -> Option<&Scalar>

source

pub fn get_as<T: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( &self, stat: Stat, -) -> Option<T>

source

pub fn set<S: Into<Scalar>>(&mut self, stat: Stat, value: S)

Set the stat stat to value.

+) -> Option<T>

source

pub fn set<S: Into<Scalar>>(&mut self, stat: Stat, value: S)

Set the stat stat to value.

source

pub fn clear(&mut self, stat: Stat)

Clear the stat stat from the set.

source

pub fn retain_only(&mut self, stats: &[Stat])

source

pub fn merge_ordered(&mut self, other: &Self) -> &Self

Merge stats set other into self, with the semantic assumption that other contains stats from an array that is appended to the array represented by self.

source

pub fn merge_unordered(&mut self, other: &Self) -> &Self

Merge stats set other into self, with no assumption on ordering. Stats that are not commutative (e.g., is_sorted) are dropped from the result.

-

Trait Implementations§

source§

impl Clone for StatsSet

source§

fn clone(&self) -> StatsSet

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StatsSet

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StatsSet

source§

fn default() -> StatsSet

Returns the “default value” for a type. Read more
source§

impl Extend<(Stat, Scalar)> for StatsSet

source§

fn extend<T: IntoIterator<Item = (Stat, Scalar)>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl IntoIterator for StatsSet

source§

type Item = (Stat, Scalar)

The type of the elements being iterated over.
source§

type IntoIter = StatsSetIntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl PartialEq for StatsSet

source§

fn eq(&self, other: &StatsSet) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, +

Trait Implementations§

source§

impl Clone for StatsSet

source§

fn clone(&self) -> StatsSet

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StatsSet

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StatsSet

source§

fn default() -> StatsSet

Returns the “default value” for a type. Read more
source§

impl Extend<(Stat, Scalar)> for StatsSet

source§

fn extend<T: IntoIterator<Item = (Stat, Scalar)>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl IntoIterator for StatsSet

source§

type Item = (Stat, Scalar)

The type of the elements being iterated over.
source§

type IntoIter = StatsSetIntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl PartialEq for StatsSet

source§

fn eq(&self, other: &StatsSet) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for StatsSet

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/docs/rust/doc/vortex_array/stats/struct.StatsSetIntoIter.html b/docs/rust/doc/vortex_array/stats/struct.StatsSetIntoIter.html index 0c3184c41b..13329b60e0 100644 --- a/docs/rust/doc/vortex_array/stats/struct.StatsSetIntoIter.html +++ b/docs/rust/doc/vortex_array/stats/struct.StatsSetIntoIter.html @@ -1,4 +1,4 @@ -StatsSetIntoIter in vortex_array::stats - Rust

Struct vortex_array::stats::StatsSetIntoIter

source ·
pub struct StatsSetIntoIter { /* private fields */ }

Trait Implementations§

source§

impl Iterator for StatsSetIntoIter

source§

type Item = (Stat, Scalar)

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( +StatsSetIntoIter in vortex_array::stats - Rust

Struct vortex_array::stats::StatsSetIntoIter

source ·
pub struct StatsSetIntoIter { /* private fields */ }

Trait Implementations§

source§

impl Iterator for StatsSetIntoIter

source§

type Item = (Stat, Scalar)

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn count(self) -> usize
where diff --git a/docs/rust/doc/vortex_array/stats/trait.Statistics.html b/docs/rust/doc/vortex_array/stats/trait.Statistics.html index bff605fd65..84c5b6c80c 100644 --- a/docs/rust/doc/vortex_array/stats/trait.Statistics.html +++ b/docs/rust/doc/vortex_array/stats/trait.Statistics.html @@ -1,36 +1,36 @@ Statistics in vortex_array::stats - Rust

Trait vortex_array::stats::Statistics

source ·
pub trait Statistics {
     // Required methods
-    fn get(&self, stat: Stat) -> Option<Scalar>;
+    fn get(&self, stat: Stat) -> Option<Scalar>;
     fn to_set(&self) -> StatsSet;
-    fn set(&self, stat: Stat, value: Scalar);
+    fn set(&self, stat: Stat, value: Scalar);
     fn clear(&self, stat: Stat);
-    fn compute(&self, stat: Stat) -> Option<Scalar>;
+    fn compute(&self, stat: Stat) -> Option<Scalar>;
     fn retain_only(&self, stats: &[Stat]);
 
     // Provided method
     fn compute_all(&self, stats: &[Stat]) -> VortexResult<StatsSet> { ... }
-}

Required Methods§

source

fn get(&self, stat: Stat) -> Option<Scalar>

Returns the value of the statistic only if it’s present

+}

Required Methods§

source

fn get(&self, stat: Stat) -> Option<Scalar>

Returns the value of the statistic only if it’s present

source

fn to_set(&self) -> StatsSet

Get all existing statistics

-
source

fn set(&self, stat: Stat, value: Scalar)

Set the value of the statistic

+
source

fn set(&self, stat: Stat, value: Scalar)

Set the value of the statistic

source

fn clear(&self, stat: Stat)

Clear the value of the statistic

-
source

fn compute(&self, stat: Stat) -> Option<Scalar>

Computes the value of the stat if it’s not present

+
source

fn compute(&self, stat: Stat) -> Option<Scalar>

Computes the value of the stat if it’s not present

source

fn retain_only(&self, stats: &[Stat])

Provided Methods§

source

fn compute_all(&self, stats: &[Stat]) -> VortexResult<StatsSet>

Compute all the requested statistics (if not already present) Returns a StatsSet with the requested stats and any additional available stats

-

Implementations§

source§

impl dyn Statistics + '_

source

pub fn get_as<U: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( +

Implementations§

source§

impl dyn Statistics + '_

source

pub fn get_as<U: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( &self, stat: Stat, -) -> Option<U>

source

pub fn get_as_cast<U: NativePType + for<'a> TryFrom<&'a Scalar, Error = VortexError>>( +) -> Option<U>

source

pub fn get_as_cast<U: NativePType + for<'a> TryFrom<&'a Scalar, Error = VortexError>>( &self, stat: Stat, -) -> Option<U>

source

pub fn compute_as<U: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( +) -> Option<U>

source

pub fn compute_as<U: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( &self, stat: Stat, -) -> Option<U>

source

pub fn compute_as_cast<U: NativePType + for<'a> TryFrom<&'a Scalar, Error = VortexError>>( +) -> Option<U>

source

pub fn compute_as_cast<U: NativePType + for<'a> TryFrom<&'a Scalar, Error = VortexError>>( &self, stat: Stat, -) -> Option<U>

source

pub fn compute_min<U: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( +) -> Option<U>

source

pub fn compute_min<U: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( &self, -) -> Option<U>

source

pub fn compute_max<U: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( +) -> Option<U>

source

pub fn compute_max<U: for<'a> TryFrom<&'a Scalar, Error = VortexError>>( &self, ) -> Option<U>

source

pub fn compute_is_strict_sorted(&self) -> Option<bool>

source

pub fn compute_is_sorted(&self) -> Option<bool>

source

pub fn compute_is_constant(&self) -> Option<bool>

source

pub fn compute_true_count(&self) -> Option<usize>

source

pub fn compute_null_count(&self) -> Option<usize>

source

pub fn compute_run_count(&self) -> Option<usize>

source

pub fn compute_bit_width_freq(&self) -> Option<Vec<usize>>

source

pub fn compute_trailing_zero_freq(&self) -> Option<Vec<usize>>

source

pub fn compute_uncompressed_size_in_bytes(&self) -> Option<usize>

Trait Implementations§

source§

impl WriteFlatBuffer for &dyn Statistics

source§

type Target<'t> = ArrayStats<'t>

source§

fn write_flatbuffer<'fb>( &self, diff --git a/docs/rust/doc/vortex_array/struct.ArrayData.html b/docs/rust/doc/vortex_array/struct.ArrayData.html index 687fb40d48..aee6583e39 100644 --- a/docs/rust/doc/vortex_array/struct.ArrayData.html +++ b/docs/rust/doc/vortex_array/struct.ArrayData.html @@ -23,7 +23,7 @@

source

pub fn is_arrow(&self) -> bool

Whether the array is fully zero-copy to Arrow (including children). This means any nested types, like Structs, Lists, and Extensions are not present.

source

pub fn is_constant(&self) -> bool

Return whether the array is constant.

-
source

pub fn as_constant(&self) -> Option<Scalar>

Return scalar value of this array if the array is constant

+
source

pub fn as_constant(&self) -> Option<Scalar>

Return scalar value of this array if the array is constant

source

pub fn child<'a>( &'a self, idx: usize, @@ -71,7 +71,7 @@ for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn fill_null( &self, array: &ArrayData, - fill_value: Scalar, + fill_value: Scalar, ) -> VortexResult<ArrayData>

source§

impl<E> FilterFn<ArrayData> for E
where E: FilterFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn filter(&self, array: &ArrayData, mask: FilterMask) -> VortexResult<ArrayData>

Filter an array by the provided predicate.
source§

impl From<BooleanBuffer> for ArrayData

source§

fn from(value: BooleanBuffer) -> Self

Converts to this type from the input type.
source§

impl From<Buffer> for ArrayData

source§

fn from(value: Buffer) -> Self

Converts to this type from the input type.
source§

impl From<Canonical> for ArrayData

This conversion is always “free” and should not touch underlying data. All it does is create an @@ -82,7 +82,7 @@ O: NativePType + OffsetSizeTrait,

source§

fn from(value: OffsetBuffer<O>) -> Self

Converts to this type from the input type.
source§

impl<T> From<ScalarBuffer<T>> for ArrayData
where T: ArrowNativeType + NativePType,

source§

fn from(value: ScalarBuffer<T>) -> Self

Converts to this type from the input type.
source§

impl From<TemporalArray> for ArrayData

source§

fn from(value: TemporalArray) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f16>> for ArrayData

source§

fn from(value: Vec<f16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f32>> for ArrayData

source§

fn from(value: Vec<f32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f64>> for ArrayData

source§

fn from(value: Vec<f64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i16>> for ArrayData

source§

fn from(value: Vec<i16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i32>> for ArrayData

source§

fn from(value: Vec<i32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i64>> for ArrayData

source§

fn from(value: Vec<i64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i8>> for ArrayData

source§

fn from(value: Vec<i8>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u16>> for ArrayData

source§

fn from(value: Vec<u16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u32>> for ArrayData

source§

fn from(value: Vec<u32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u64>> for ArrayData

source§

fn from(value: Vec<u64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u8>> for ArrayData

source§

fn from(value: Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl FromArrowArray<&BooleanArray> for ArrayData

source§

fn from_arrow(value: &ArrowBooleanArray, nullable: bool) -> Self

source§

impl<T: ByteArrayType> FromArrowArray<&GenericByteArray<T>> for ArrayData
where <T as ByteArrayType>::Offset: NativePType,

source§

fn from_arrow(value: &GenericByteArray<T>, nullable: bool) -> Self

source§

impl<T: ByteViewType> FromArrowArray<&GenericByteViewArray<T>> for ArrayData

source§

fn from_arrow(value: &GenericByteViewArray<T>, nullable: bool) -> Self

source§

impl<O: OffsetSizeTrait + NativePType> FromArrowArray<&GenericListArray<O>> for ArrayData

source§

fn from_arrow(value: &GenericListArray<O>, nullable: bool) -> Self

source§

impl FromArrowArray<&NullArray> for ArrayData

source§

fn from_arrow(value: &ArrowNullArray, nullable: bool) -> Self

source§

impl<T: ArrowPrimitiveType> FromArrowArray<&PrimitiveArray<T>> for ArrayData
where - <T as ArrowPrimitiveType>::Native: NativePType,

source§

fn from_arrow(value: &ArrowPrimitiveArray<T>, nullable: bool) -> Self

source§

impl FromArrowArray<&StructArray> for ArrayData

source§

fn from_arrow(value: &ArrowStructArray, nullable: bool) -> Self

source§

impl FromArrowArray<Arc<dyn Array>> for ArrayData

source§

fn from_arrow(array: ArrowArrayRef, nullable: bool) -> Self

source§

impl FromIterator<ArrayData> for ChunkedArray

source§

fn from_iter<T: IntoIterator<Item = ArrayData>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<Buffer>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<Buffer>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<BufferString>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<BufferString>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<String>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<String>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<bool>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<bool>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<f16>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<f16>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<f32>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<f32>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<f64>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<f64>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i16>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i16>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i32>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i32>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i64>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i64>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i8>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i8>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u16>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u16>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u32>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u32>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u64>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u64>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u8>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u8>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl IndexOrd<Scalar> for ArrayData

source§

fn index_cmp(&self, idx: usize, elem: &Scalar) -> Option<Ordering>

PartialOrd of the value at index idx with elem. + <T as ArrowPrimitiveType>::Native: NativePType,

source§

fn from_arrow(value: &ArrowPrimitiveArray<T>, nullable: bool) -> Self

source§

impl FromArrowArray<&StructArray> for ArrayData

source§

fn from_arrow(value: &ArrowStructArray, nullable: bool) -> Self

source§

impl FromArrowArray<Arc<dyn Array>> for ArrayData

source§

fn from_arrow(array: ArrowArrayRef, nullable: bool) -> Self

source§

impl FromIterator<ArrayData> for ChunkedArray

source§

fn from_iter<T: IntoIterator<Item = ArrayData>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<Buffer>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<Buffer>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<BufferString>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<BufferString>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<String>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<String>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<bool>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<bool>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<f16>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<f16>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<f32>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<f32>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<f64>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<f64>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i16>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i16>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i32>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i32>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i64>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i64>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<i8>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<i8>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u16>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u16>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u32>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u32>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u64>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u64>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<u8>> for ArrayData

source§

fn from_iter<T: IntoIterator<Item = Option<u8>>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl IndexOrd<Scalar> for ArrayData

source§

fn index_cmp(&self, idx: usize, elem: &Scalar) -> Option<Ordering>

PartialOrd of the value at index idx with elem. For example, if self[idx] > elem, return Some(Greater).
source§

fn index_lt(&self, idx: usize, elem: &V) -> bool

source§

fn index_le(&self, idx: usize, elem: &V) -> bool

source§

fn index_gt(&self, idx: usize, elem: &V) -> bool

source§

fn index_ge(&self, idx: usize, elem: &V) -> bool

source§

impl IntoCanonical for ArrayData

IntoCanonical implementation for Array.

Canonicalizing an array requires potentially decompressing, so this requires a roundtrip through the array’s internal codec.

@@ -97,17 +97,17 @@ options: LikeOptions, ) -> VortexResult<ArrayData>
source§

impl<E> ScalarAtFn<ArrayData> for E
where E: ScalarAtFn<E::Array> + Encoding, - for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn scalar_at(&self, array: &ArrayData, index: usize) -> VortexResult<Scalar>

source§

impl<E> SearchSortedFn<ArrayData> for E
where + for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn scalar_at(&self, array: &ArrayData, index: usize) -> VortexResult<Scalar>

source§

impl<E> SearchSortedFn<ArrayData> for E
where E: SearchSortedFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn search_sorted( &self, array: &ArrayData, - value: &Scalar, + value: &Scalar, side: SearchSortedSide, ) -> VortexResult<SearchResult>

source§

fn search_sorted_many( &self, array: &ArrayData, - values: &[Scalar], + values: &[Scalar], side: SearchSortedSide, ) -> VortexResult<Vec<SearchResult>>

Bulk search for many values.
source§

impl<E> SearchSortedUsizeFn<ArrayData> for E
where E: SearchSortedUsizeFn<E::Array> + Encoding, @@ -145,7 +145,7 @@ for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn subtract_scalar( &self, array: &ArrayData, - to_subtract: &Scalar, + to_subtract: &Scalar, ) -> VortexResult<ArrayData>

source§

impl<E> TakeFn<ArrayData> for E
where E: TakeFn<E::Array> + Encoding, for<'a> &'a E::Array: TryFrom<&'a ArrayData, Error = VortexError>,

source§

fn take( diff --git a/docs/rust/doc/vortex_datafusion/memory/struct.VortexMemTable.html b/docs/rust/doc/vortex_datafusion/memory/struct.VortexMemTable.html index 5e88ce73e3..e4c43812fe 100644 --- a/docs/rust/doc/vortex_datafusion/memory/struct.VortexMemTable.html +++ b/docs/rust/doc/vortex_datafusion/memory/struct.VortexMemTable.html @@ -1,7 +1,7 @@ VortexMemTable in vortex_datafusion::memory - Rust

Struct vortex_datafusion::memory::VortexMemTable

source ·
pub struct VortexMemTable { /* private fields */ }
Expand description

A [TableProvider] that exposes an existing Vortex Array to the DataFusion SQL engine.

-

Only arrays that have a top-level struct type can be exposed as +

Only arrays that have a top-level struct type can be exposed as a table to DataFusion.

-

Implementations§

source§

impl VortexMemTable

source

pub fn new(array: ArrayData, options: VortexMemTableOptions) -> Self

Build a new table provider from an existing struct type array.

+

Implementations§

source§

impl VortexMemTable

source

pub fn new(array: ArrayData, options: VortexMemTableOptions) -> Self

Build a new table provider from an existing struct type array.

§Panics

Creation will panic if the provided array is not of DType::Struct type.

Trait Implementations§

source§

impl Clone for VortexMemTable

source§

fn clone(&self) -> VortexMemTable

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VortexMemTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl TableProvider for VortexMemTable

source§

fn scan<'life0, 'life1, 'life2, 'life3, 'async_trait>( diff --git a/docs/rust/doc/vortex_datafusion/persistent/execution/struct.VortexExec.html b/docs/rust/doc/vortex_datafusion/persistent/execution/struct.VortexExec.html index 605b54efd2..d33b79e5e3 100644 --- a/docs/rust/doc/vortex_datafusion/persistent/execution/struct.VortexExec.html +++ b/docs/rust/doc/vortex_datafusion/persistent/execution/struct.VortexExec.html @@ -2,7 +2,7 @@ file_scan_config: FileScanConfig, metrics: ExecutionPlanMetricsSet, predicate: Option<Arc<dyn PhysicalExpr>>, - ctx: Arc<Context>, + ctx: Arc<Context>, initial_read_cache: InitialReadCache, ) -> DFResult<Self>

Trait Implementations§

source§

impl Clone for VortexExec

source§

fn clone(&self) -> VortexExec

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VortexExec

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DisplayAs for VortexExec

source§

fn fmt_as(&self, t: DisplayFormatType, f: &mut Formatter<'_>) -> Result

Format according to DisplayFormatType, used when verbose representation looks different from the default one Read more
source§

impl ExecutionPlan for VortexExec

source§

fn name(&self) -> &str

Short name for the ExecutionPlan, such as ‘ParquetExec’. Read more
source§

fn as_any(&self) -> &dyn Any

Returns the execution plan as Any so that it can be diff --git a/docs/rust/doc/vortex_datafusion/persistent/format/struct.VortexFormat.html b/docs/rust/doc/vortex_datafusion/persistent/format/struct.VortexFormat.html index 7cb290132b..0831dbdad7 100644 --- a/docs/rust/doc/vortex_datafusion/persistent/format/struct.VortexFormat.html +++ b/docs/rust/doc/vortex_datafusion/persistent/format/struct.VortexFormat.html @@ -1,4 +1,4 @@ -VortexFormat in vortex_datafusion::persistent::format - Rust

Struct vortex_datafusion::persistent::format::VortexFormat

source ·
pub struct VortexFormat { /* private fields */ }

Implementations§

source§

impl VortexFormat

source

pub fn new(context: &Context) -> Self

Trait Implementations§

source§

impl Debug for VortexFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for VortexFormat

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl FileFormat for VortexFormat

source§

fn as_any(&self) -> &dyn Any

Returns the table provider as Any so that it can be +VortexFormat in vortex_datafusion::persistent::format - Rust

Struct vortex_datafusion::persistent::format::VortexFormat

source ·
pub struct VortexFormat { /* private fields */ }

Implementations§

source§

impl VortexFormat

source

pub fn new(context: &Context) -> Self

Trait Implementations§

source§

impl Debug for VortexFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for VortexFormat

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl FileFormat for VortexFormat

source§

fn as_any(&self) -> &dyn Any

Returns the table provider as Any so that it can be downcast to a specific implementation.
source§

fn get_ext(&self) -> String

Returns the extension for this FileFormat, e.g. “file.csv” -> csv
source§

fn get_ext_with_compression( &self, file_compression_type: &FileCompressionType, diff --git a/docs/rust/doc/vortex_datafusion/persistent/opener/struct.VortexFileOpener.html b/docs/rust/doc/vortex_datafusion/persistent/opener/struct.VortexFileOpener.html index d88a39aead..cc0fe729ad 100644 --- a/docs/rust/doc/vortex_datafusion/persistent/opener/struct.VortexFileOpener.html +++ b/docs/rust/doc/vortex_datafusion/persistent/opener/struct.VortexFileOpener.html @@ -1,11 +1,11 @@ VortexFileOpener in vortex_datafusion::persistent::opener - Rust
pub struct VortexFileOpener {
-    pub ctx: Arc<Context>,
+    pub ctx: Arc<Context>,
     pub object_store: Arc<dyn ObjectStore>,
     pub projection: Option<Vec<usize>>,
     pub predicate: Option<Arc<dyn PhysicalExpr>>,
     pub arrow_schema: SchemaRef,
     /* private fields */
-}

Fields§

§ctx: Arc<Context>§object_store: Arc<dyn ObjectStore>§projection: Option<Vec<usize>>§predicate: Option<Arc<dyn PhysicalExpr>>§arrow_schema: SchemaRef

Trait Implementations§

source§

impl Clone for VortexFileOpener

source§

fn clone(&self) -> VortexFileOpener

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl FileOpener for VortexFileOpener

source§

fn open(&self, file_meta: FileMeta) -> DFResult<FileOpenFuture>

Asynchronously open the specified file and return a stream +}

Fields§

§ctx: Arc<Context>§object_store: Arc<dyn ObjectStore>§projection: Option<Vec<usize>>§predicate: Option<Arc<dyn PhysicalExpr>>§arrow_schema: SchemaRef

Trait Implementations§

source§

impl Clone for VortexFileOpener

source§

fn clone(&self) -> VortexFileOpener

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl FileOpener for VortexFileOpener

source§

fn open(&self, file_meta: FileMeta) -> DFResult<FileOpenFuture>

Asynchronously open the specified file and return a stream of [RecordBatch]

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/docs/rust/doc/vortex_datafusion/persistent/statistics/fn.array_to_col_statistics.html b/docs/rust/doc/vortex_datafusion/persistent/statistics/fn.array_to_col_statistics.html index 7072c9d91a..baa23e3c5e 100644 --- a/docs/rust/doc/vortex_datafusion/persistent/statistics/fn.array_to_col_statistics.html +++ b/docs/rust/doc/vortex_datafusion/persistent/statistics/fn.array_to_col_statistics.html @@ -1,3 +1,3 @@ array_to_col_statistics in vortex_datafusion::persistent::statistics - Rust
pub fn array_to_col_statistics(
-    array: &StructArray,
-) -> VortexResult<ColumnStatistics>
\ No newline at end of file + array: &StructArray, +) -> VortexResult<ColumnStatistics>

\ No newline at end of file diff --git a/docs/rust/doc/vortex_datafusion/persistent/statistics/fn.uncompressed_col_size.html b/docs/rust/doc/vortex_datafusion/persistent/statistics/fn.uncompressed_col_size.html index b325eab396..63cee9b529 100644 --- a/docs/rust/doc/vortex_datafusion/persistent/statistics/fn.uncompressed_col_size.html +++ b/docs/rust/doc/vortex_datafusion/persistent/statistics/fn.uncompressed_col_size.html @@ -1 +1 @@ -uncompressed_col_size in vortex_datafusion::persistent::statistics - Rust
pub fn uncompressed_col_size(array: &StructArray) -> VortexResult<Option<u64>>
\ No newline at end of file +uncompressed_col_size in vortex_datafusion::persistent::statistics - Rust
pub fn uncompressed_col_size(array: &StructArray) -> VortexResult<Option<u64>>
\ No newline at end of file diff --git a/docs/rust/doc/vortex_datafusion/trait.SessionContextExt.html b/docs/rust/doc/vortex_datafusion/trait.SessionContextExt.html index 626126af77..5c28918dbd 100644 --- a/docs/rust/doc/vortex_datafusion/trait.SessionContextExt.html +++ b/docs/rust/doc/vortex_datafusion/trait.SessionContextExt.html @@ -3,12 +3,12 @@ fn register_mem_vortex_opts<S: AsRef<str>>( &self, name: S, - array: ArrayData, + array: ArrayData, options: VortexMemTableOptions, ) -> DFResult<()>; fn read_mem_vortex_opts( &self, - array: ArrayData, + array: ArrayData, options: VortexMemTableOptions, ) -> DFResult<DataFrame>; @@ -16,29 +16,29 @@ fn register_mem_vortex<S: AsRef<str>>( &self, name: S, - array: ArrayData, + array: ArrayData, ) -> DFResult<()> { ... } - fn read_mem_vortex(&self, array: ArrayData) -> DFResult<DataFrame> { ... } + fn read_mem_vortex(&self, array: ArrayData) -> DFResult<DataFrame> { ... } }

Required Methods§

source

fn register_mem_vortex_opts<S: AsRef<str>>( &self, name: S, - array: ArrayData, + array: ArrayData, options: VortexMemTableOptions, ) -> DFResult<()>

source

fn read_mem_vortex_opts( &self, - array: ArrayData, + array: ArrayData, options: VortexMemTableOptions, ) -> DFResult<DataFrame>

Provided Methods§

source

fn register_mem_vortex<S: AsRef<str>>( &self, name: S, - array: ArrayData, -) -> DFResult<()>

source

fn read_mem_vortex(&self, array: ArrayData) -> DFResult<DataFrame>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SessionContextExt for SessionContext

source§

fn register_mem_vortex_opts<S: AsRef<str>>( + array: ArrayData, +) -> DFResult<()>

source

fn read_mem_vortex(&self, array: ArrayData) -> DFResult<DataFrame>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SessionContextExt for SessionContext

source§

fn register_mem_vortex_opts<S: AsRef<str>>( &self, name: S, - array: ArrayData, + array: ArrayData, options: VortexMemTableOptions, ) -> DFResult<()>

source§

fn read_mem_vortex_opts( &self, - array: ArrayData, + array: ArrayData, options: VortexMemTableOptions, ) -> DFResult<DataFrame>

Implementors§

\ No newline at end of file diff --git a/docs/rust/doc/vortex_fuzz/enum.Action.html b/docs/rust/doc/vortex_fuzz/enum.Action.html index ca5c7a9ab1..a05ec2e916 100644 --- a/docs/rust/doc/vortex_fuzz/enum.Action.html +++ b/docs/rust/doc/vortex_fuzz/enum.Action.html @@ -1,10 +1,10 @@ Action in vortex_fuzz - Rust

Enum vortex_fuzz::Action

source ·
pub enum Action {
     Compress(SamplingCompressor<'static>),
     Slice(Range<usize>),
-    Take(ArrayData),
-    SearchSorted(Scalar, SearchSortedSide),
-    Filter(FilterMask),
-}

Variants§

§

Compress(SamplingCompressor<'static>)

§

Slice(Range<usize>)

§

Take(ArrayData)

§

SearchSorted(Scalar, SearchSortedSide)

§

Filter(FilterMask)

Trait Implementations§

source§

impl Debug for Action

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Action

§

impl !RefUnwindSafe for Action

§

impl Send for Action

§

impl Sync for Action

§

impl Unpin for Action

§

impl !UnwindSafe for Action

Blanket Implementations§

source§

impl<T> Any for T
where + Take(ArrayData), + SearchSorted(Scalar, SearchSortedSide), + Filter(FilterMask), +}

Variants§

§

Compress(SamplingCompressor<'static>)

§

Slice(Range<usize>)

§

Take(ArrayData)

§

SearchSorted(Scalar, SearchSortedSide)

§

Filter(FilterMask)

Trait Implementations§

source§

impl Debug for Action

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Action

§

impl !RefUnwindSafe for Action

§

impl Send for Action

§

impl Sync for Action

§

impl Unpin for Action

§

impl !UnwindSafe for Action

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/docs/rust/doc/vortex_fuzz/enum.ExpectedValue.html b/docs/rust/doc/vortex_fuzz/enum.ExpectedValue.html index ead8d58323..14122510b5 100644 --- a/docs/rust/doc/vortex_fuzz/enum.ExpectedValue.html +++ b/docs/rust/doc/vortex_fuzz/enum.ExpectedValue.html @@ -1,7 +1,7 @@ ExpectedValue in vortex_fuzz - Rust

Enum vortex_fuzz::ExpectedValue

source ·
pub enum ExpectedValue {
-    Array(ArrayData),
-    Search(SearchResult),
-}

Variants§

Implementations§

Trait Implementations§

source§

impl Debug for ExpectedValue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + Array(ArrayData), + Search(SearchResult), +}

Variants§

§

Array(ArrayData)

§

Search(SearchResult)

Implementations§

source§

impl ExpectedValue

source

pub fn array(self) -> ArrayData

source

pub fn search(self) -> SearchResult

Trait Implementations§

source§

impl Debug for ExpectedValue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/docs/rust/doc/vortex_fuzz/fn.sort_canonical_array.html b/docs/rust/doc/vortex_fuzz/fn.sort_canonical_array.html index ebe1a72520..9416fcacd2 100644 --- a/docs/rust/doc/vortex_fuzz/fn.sort_canonical_array.html +++ b/docs/rust/doc/vortex_fuzz/fn.sort_canonical_array.html @@ -1 +1 @@ -sort_canonical_array in vortex_fuzz - Rust

Function vortex_fuzz::sort_canonical_array

source ·
pub fn sort_canonical_array(array: &ArrayData) -> ArrayData
\ No newline at end of file +sort_canonical_array in vortex_fuzz - Rust

Function vortex_fuzz::sort_canonical_array

source ·
pub fn sort_canonical_array(array: &ArrayData) -> ArrayData
\ No newline at end of file diff --git a/docs/rust/doc/vortex_fuzz/struct.FuzzArrayAction.html b/docs/rust/doc/vortex_fuzz/struct.FuzzArrayAction.html index a4152d8826..4c0fe1bc91 100644 --- a/docs/rust/doc/vortex_fuzz/struct.FuzzArrayAction.html +++ b/docs/rust/doc/vortex_fuzz/struct.FuzzArrayAction.html @@ -1,7 +1,7 @@ FuzzArrayAction in vortex_fuzz - Rust

Struct vortex_fuzz::FuzzArrayAction

source ·
pub struct FuzzArrayAction {
-    pub array: ArrayData,
+    pub array: ArrayData,
     pub actions: Vec<(Action, ExpectedValue)>,
-}

Fields§

§array: ArrayData§actions: Vec<(Action, ExpectedValue)>

Trait Implementations§

source§

impl<'a> Arbitrary<'a> for FuzzArrayAction

source§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given +}

Fields§

§array: ArrayData§actions: Vec<(Action, ExpectedValue)>

Trait Implementations§

source§

impl<'a> Arbitrary<'a> for FuzzArrayAction

source§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
§

fn try_size_hint( depth: usize, diff --git a/docs/rust/doc/vortex_runend/struct.RunEndArray.html b/docs/rust/doc/vortex_runend/struct.RunEndArray.html index 2bb1fa317d..910bea206a 100644 --- a/docs/rust/doc/vortex_runend/struct.RunEndArray.html +++ b/docs/rust/doc/vortex_runend/struct.RunEndArray.html @@ -17,7 +17,7 @@

source

pub fn values(&self) -> ArrayData

The scalar values.

The i-th element is the scalar value for the i-th repeated run. The run begins at ends[i] (inclusive) and terminates at ends[i+1] (exclusive).

-

Trait Implementations§

source§

impl AsRef<ArrayData> for RunEndArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for RunEndArray

source§

fn clone(&self) -> RunEndArray

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl CompareFn<RunEndArray> for RunEndEncoding

Trait Implementations§

source§

impl AsRef<ArrayData> for RunEndArray

source§

fn as_ref(&self) -> &ArrayData

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for RunEndArray

source§

fn clone(&self) -> RunEndArray

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl CompareFn<RunEndArray> for RunEndEncoding

source§

fn compare( &self, lhs: &RunEndArray, rhs: &ArrayData, diff --git a/docs/rust/doc/vortex_runend/struct.RunEndEncoding.html b/docs/rust/doc/vortex_runend/struct.RunEndEncoding.html index 560c390ee0..f3fffd5e58 100644 --- a/docs/rust/doc/vortex_runend/struct.RunEndEncoding.html +++ b/docs/rust/doc/vortex_runend/struct.RunEndEncoding.html @@ -1,5 +1,5 @@ RunEndEncoding in vortex_runend - Rust

Struct vortex_runend::RunEndEncoding

source ·
pub struct RunEndEncoding;
Expand description

The array encoding

-

Trait Implementations§

source§

impl CompareFn<RunEndArray> for RunEndEncoding

Trait Implementations§

source§

impl CompareFn<RunEndArray> for RunEndEncoding

source§

fn compare( &self, lhs: &RunEndArray, rhs: &ArrayData,