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>
 
impl<T: ByteArrayType> BytesScalarImpl<T>
fn new(truthy_value: &dyn Array, falsy_value: &dyn Array) -> Self
fn get_value_from_scalar(scalar: &dyn Array) -> Option<Vec<u8>>
Sourcefn get_scalar_and_null_buffer_for_single_non_nullable(
    predicate: BooleanBuffer,
    value: &[u8],
) -> (Buffer, OffsetBuffer<T::Offset>, Option<NullBuffer>)
 
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
Sourcefn get_bytes_and_offset_for_all_same_value(
    number_of_values: usize,
    value: &[u8],
) -> (Buffer, OffsetBuffer<T::Offset>)
 
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
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>
 
impl<T: ByteArrayType> Debug for BytesScalarImpl<T>
Source§impl<T: Hash + ByteArrayType> Hash for BytesScalarImpl<T>
 
impl<T: Hash + ByteArrayType> Hash for BytesScalarImpl<T>
Source§impl<T: PartialEq + ByteArrayType> PartialEq for BytesScalarImpl<T>
 
impl<T: PartialEq + ByteArrayType> PartialEq for BytesScalarImpl<T>
Source§impl<T: ByteArrayType> ZipImpl for BytesScalarImpl<T>
 
impl<T: ByteArrayType> ZipImpl for BytesScalarImpl<T>
Source§fn create_output(
    &self,
    predicate: &BooleanArray,
) -> Result<ArrayRef, ArrowError>
 
fn create_output( &self, predicate: &BooleanArray, ) -> Result<ArrayRef, ArrowError>
Creating output array based on input boolean array
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> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more