Skip to main content

FillNullKernel

Trait FillNullKernel 

Source
pub trait FillNullKernel: VTable {
    // Required method
    fn fill_null(
        array: &Self::Array,
        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: &Self::Array, 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", so this trait is not object safe.

Implementors§