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§
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§
impl FillNullKernel for Bool
impl FillNullKernel for Decimal
impl FillNullKernel for Dict
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.