struct PrimitiveScalarImpl<T: ArrowPrimitiveType> {
    data_type: DataType,
    truthy: Option<T::Native>,
    falsy: Option<T::Native>,
}Fields§
§data_type: DataType§truthy: Option<T::Native>§falsy: Option<T::Native>Implementations§
Source§impl<T: ArrowPrimitiveType> PrimitiveScalarImpl<T>
 
impl<T: ArrowPrimitiveType> PrimitiveScalarImpl<T>
fn new(truthy: &dyn Array, falsy: &dyn Array) -> Self
fn get_value_from_scalar(scalar: &dyn Array) -> Option<T::Native>
Sourcefn get_scalar_and_null_buffer_for_single_non_nullable(
    predicate: BooleanBuffer,
    value: T::Native,
) -> (Vec<T::Native>, Option<NullBuffer>)
 
fn get_scalar_and_null_buffer_for_single_non_nullable( predicate: BooleanBuffer, value: T::Native, ) -> (Vec<T::Native>, Option<NullBuffer>)
return an output array that has
value in all locations where predicate is true
null otherwise
Trait Implementations§
Source§impl<T: ArrowPrimitiveType> Debug for PrimitiveScalarImpl<T>
 
impl<T: ArrowPrimitiveType> Debug for PrimitiveScalarImpl<T>
Source§impl<T: ArrowPrimitiveType> ZipImpl for PrimitiveScalarImpl<T>
 
impl<T: ArrowPrimitiveType> ZipImpl for PrimitiveScalarImpl<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
Auto Trait Implementations§
impl<T> Freeze for PrimitiveScalarImpl<T>where
    <T as ArrowPrimitiveType>::Native: Freeze,
impl<T> RefUnwindSafe for PrimitiveScalarImpl<T>where
    <T as ArrowPrimitiveType>::Native: RefUnwindSafe,
impl<T> Send for PrimitiveScalarImpl<T>
impl<T> Sync for PrimitiveScalarImpl<T>
impl<T> Unpin for PrimitiveScalarImpl<T>where
    <T as ArrowPrimitiveType>::Native: Unpin,
impl<T> UnwindSafe for PrimitiveScalarImpl<T>where
    <T as ArrowPrimitiveType>::Native: 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