BytesScalarImpl

Struct BytesScalarImpl 

Source
struct BytesScalarImpl<T: ByteArrayType> {
    truthy: Option<Vec<u8>>,
    falsy: Option<Vec<u8>>,
    phantom: PhantomData<T>,
}

Fields§

§truthy: Option<Vec<u8>>§falsy: Option<Vec<u8>>§phantom: PhantomData<T>

Implementations§

Source§

impl<T: ByteArrayType> BytesScalarImpl<T>

Source

fn new(truthy_value: &dyn Array, falsy_value: &dyn Array) -> Self

Source

fn get_value_from_scalar(scalar: &dyn Array) -> Option<Vec<u8>>

Source

fn get_scalar_and_null_buffer_for_single_non_nullable( predicate: BooleanBuffer, value: &[u8], ) -> (Buffer, OffsetBuffer<T::Offset>, Option<NullBuffer>)

return an output array that has value in all locations where predicate is true null otherwise

Source

fn get_bytes_and_offset_for_all_same_value( number_of_values: usize, value: &[u8], ) -> (Buffer, OffsetBuffer<T::Offset>)

Create a [Buffer] where value slice is repeated number_of_values times and [OffsetBuffer] where there are number_of_values lengths, and all equals to value length

Source

fn create_output_on_non_nulls( predicate: &BooleanBuffer, truthy_val: &[u8], falsy_val: &[u8], ) -> (Buffer, OffsetBuffer<<T as ByteArrayType>::Offset>)

Trait Implementations§

Source§

impl<T: ByteArrayType> Debug for BytesScalarImpl<T>

Source§

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

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

impl<T: Hash + ByteArrayType> Hash for BytesScalarImpl<T>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T: PartialEq + ByteArrayType> PartialEq for BytesScalarImpl<T>

Source§

fn eq(&self, other: &BytesScalarImpl<T>) -> 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<T: ByteArrayType> ZipImpl for BytesScalarImpl<T>

Source§

fn create_output( &self, predicate: &BooleanArray, ) -> Result<ArrayRef, ArrowError>

Creating output array based on input boolean array
Source§

impl<T: ByteArrayType> StructuralPartialEq for BytesScalarImpl<T>

Auto Trait Implementations§

§

impl<T> Freeze for BytesScalarImpl<T>

§

impl<T> RefUnwindSafe for BytesScalarImpl<T>
where T: RefUnwindSafe,

§

impl<T> Send for BytesScalarImpl<T>

§

impl<T> Sync for BytesScalarImpl<T>

§

impl<T> Unpin for BytesScalarImpl<T>
where T: Unpin,

§

impl<T> UnwindSafe for BytesScalarImpl<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> 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.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,