Struct vortex::array::VarBinArray

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

Implementations§

source§

impl VarBinArray

source

pub fn array(&self) -> &Array

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source§

impl VarBinArray

source

pub fn try_new( offsets: Array, bytes: Array, dtype: DType, validity: Validity, ) -> VortexResult<Self>

source

pub fn offsets(&self) -> Array

source

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

source

pub fn bytes(&self) -> Array

source

pub fn validity(&self) -> Validity

source

pub fn sliced_bytes(&self) -> VortexResult<Array>

source

pub fn from_vec<T: AsRef<[u8]>>(vec: Vec<T>, dtype: DType) -> Self

source

pub fn from_iter<T: AsRef<[u8]>, I: IntoIterator<Item = Option<T>>>( iter: I, dtype: DType, ) -> Self

source

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

source

pub fn bytes_at(&self, index: usize) -> VortexResult<Buffer>

Trait Implementations§

source§

impl AcceptArrayVisitor for VarBinArray

source§

fn accept(&self, visitor: &mut dyn ArrayVisitor) -> VortexResult<()>

source§

impl ArrayAccessor<[u8]> for VarBinArray

source§

fn with_iterator<F, R>(&self, f: F) -> VortexResult<R>
where F: for<'a> FnOnce(&mut dyn Iterator<Item = Option<&'a [u8]>>) -> R,

Iterate over each element of the array, in-order. Read more
source§

impl ArrayCompute for VarBinArray

source§

fn scalar_at(&self) -> Option<&dyn ScalarAtFn>

Single item indexing on Vortex arrays. Read more
source§

fn slice(&self) -> Option<&dyn SliceFn>

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

fn take(&self) -> Option<&dyn TakeFn>

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

fn cast(&self) -> Option<&dyn CastFn>

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

fn compare(&self) -> Option<&dyn CompareFn>

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

fn fill_forward(&self) -> Option<&dyn FillForwardFn>

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

fn filter(&self) -> Option<&dyn FilterFn>

Filtering function on arrays of predicates. Read more
source§

fn filter_indices(&self) -> Option<&dyn FilterIndicesFn>

Filter indices based on a disjunctive normal form relational expression. TODO(aduffy): remove this function and push implementation into vortex-datafusion.
source§

fn subtract_scalar(&self) -> Option<&dyn SubtractScalarFn>

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

fn search_sorted(&self) -> Option<&dyn SearchSortedFn>

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

fn and(&self) -> Option<&dyn AndFn>

Perform a boolean AND operation over two arrays Read more
source§

fn or(&self) -> Option<&dyn OrFn>

Perform a boolean OR operation over two arrays Read more
source§

impl ArrayStatisticsCompute for VarBinArray

source§

fn compute_statistics(&self, _stat: Stat) -> VortexResult<StatsSet>

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

impl ArrayTrait for VarBinArray

source§

fn nbytes(&self) -> usize

source§

impl ArrayValidity for VarBinArray

source§

impl ArrayVariants for VarBinArray

source§

impl AsArray for VarBinArray

source§

impl Clone for VarBinArray

source§

fn clone(&self) -> VarBinArray

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 VarBinArray

source§

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

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

impl FilterFn for VarBinArray

source§

fn filter(&self, predicate: &Array) -> VortexResult<Array>

Filter an array by the provided predicate.
source§

impl From<TypedArray<VarBin>> for VarBinArray

source§

fn from(typed: TypedArray<VarBin>) -> Self

Converts to this type from the input type.
source§

impl From<VarBinArray> for Array

source§

fn from(value: VarBinArray) -> Array

Converts to this type from the input type.
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 GetArrayMetadata for VarBinArray

source§

impl<'a> IntoArray for VarBinArray

source§

impl IntoCanonical for VarBinArray

source§

impl ScalarAtFn for VarBinArray

source§

impl SliceFn for VarBinArray

source§

fn slice(&self, start: usize, stop: usize) -> VortexResult<Array>

source§

impl TakeFn for VarBinArray

source§

fn take(&self, indices: &Array) -> VortexResult<Array>

source§

impl ToArray for VarBinArray

source§

fn to_array(&self) -> Array

source§

impl TryFrom<&Array> for VarBinArray

§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(array: &Array) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Array> for VarBinArray

§

type Error = VortexError

The type returned in the event of a conversion error.
source§

fn try_from(array: Array) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl BinaryArrayTrait for VarBinArray

source§

impl Utf8ArrayTrait for VarBinArray

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> ArrayDType for T
where T: AsArray,

source§

fn dtype(&self) -> &DType

source§

impl<T> ArrayEncodingRef for T
where T: AsArray,

source§

fn encoding(&self) -> &'static dyn ArrayEncoding

source§

impl<T> ArrayLen for T
where T: AsArray,

source§

fn len(&self) -> usize

source§

fn is_empty(&self) -> bool

source§

impl<T> ArrayStatistics for T
where T: AsArray,

source§

fn statistics(&self) -> &dyn Statistics

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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoArrayVariant for T
where T: IntoCanonical,

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.