Skip to main content

FillNullReduce

Trait FillNullReduce 

Source
pub trait FillNullReduce: VTable {
    // Required method
    fn fill_null(
        array: &Self::Array,
        fill_value: &Scalar,
    ) -> VortexResult<Option<ArrayRef>>;
}
Expand description

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

This trait is for fill_null implementations that can operate purely on array metadata and structure without needing to read or execute on the underlying buffers. Implementations should return None if the operation requires buffer access.

§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, ) -> 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§