Path: blob/main/crates/polars-compute/src/comparisons/null.rs
6939 views
use arrow::array::{Array, NullArray};1use arrow::bitmap::Bitmap;23use super::{TotalEqKernel, TotalOrdKernel};45impl TotalEqKernel for NullArray {6type Scalar = Box<dyn Array>;78fn tot_eq_kernel(&self, other: &Self) -> Bitmap {9assert!(self.len() == other.len());10Bitmap::new_with_value(true, self.len())11}1213fn tot_ne_kernel(&self, other: &Self) -> Bitmap {14assert!(self.len() == other.len());15Bitmap::new_zeroed(self.len())16}1718fn tot_eq_kernel_broadcast(&self, _other: &Self::Scalar) -> Bitmap {19todo!()20}2122fn tot_ne_kernel_broadcast(&self, _other: &Self::Scalar) -> Bitmap {23todo!()24}25}2627impl TotalOrdKernel for NullArray {28type Scalar = Box<dyn Array>;2930fn tot_lt_kernel(&self, _other: &Self) -> Bitmap {31unimplemented!()32}3334fn tot_le_kernel(&self, _other: &Self) -> Bitmap {35unimplemented!()36}3738fn tot_lt_kernel_broadcast(&self, _other: &Self::Scalar) -> Bitmap {39unimplemented!()40}4142fn tot_le_kernel_broadcast(&self, _other: &Self::Scalar) -> Bitmap {43unimplemented!()44}4546fn tot_gt_kernel_broadcast(&self, _other: &Self::Scalar) -> Bitmap {47unimplemented!()48}4950fn tot_ge_kernel_broadcast(&self, _other: &Self::Scalar) -> Bitmap {51unimplemented!()52}53}545556