Skip to main content

FillNullKernel

Trait FillNullKernel 

Source
pub trait FillNullKernel: VTable {
    // Required method
    fn fill_null(
        array: ArrayView<'_, Self>,
        fill_value: &Scalar,
        ctx: &mut ExecutionCtx,
    ) -> VortexResult<Option<ArrayRef>>;
}
Expand description

Fill nulls in an array with a scalar value, potentially reading buffers.

Unlike FillNullReduce, this trait is for fill_null implementations that may need to read and execute on the underlying buffers to produce the result.

§Preconditions

The fill value is guaranteed to be non-null. The array is guaranteed to have mixed validity (neither all-valid nor all-invalid).

Required Methods§

Source

fn fill_null( array: ArrayView<'_, Self>, fill_value: &Scalar, ctx: &mut ExecutionCtx, ) -> VortexResult<Option<ArrayRef>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl FillNullKernel for Bool

Source§

impl FillNullKernel for Decimal

Source§

impl FillNullKernel for Dict

Source§

impl FillNullKernel for Extension

Fills the nulls of the storage array with the storage value of the fill scalar, then wraps the result in the extension type.

Source§

impl FillNullKernel for Primitive

Source§

impl FillNullKernel for VarBinView