Trait polars_core::chunked_array::ops::ChunkApplyKernel

source ·
pub trait ChunkApplyKernel<A: Array> {
    // Required methods
    fn apply_kernel(&self, f: &dyn Fn(&A) -> ArrayRef) -> Self;
    fn apply_kernel_cast<S>(
        &self,
        f: &dyn Fn(&A) -> ArrayRef
    ) -> ChunkedArray<S>
       where S: PolarsDataType;
}
Expand description

Apply kernels on the arrow array chunks in a ChunkedArray.

Required Methods§

source

fn apply_kernel(&self, f: &dyn Fn(&A) -> ArrayRef) -> Self

Apply kernel and return result as a new ChunkedArray.

source

fn apply_kernel_cast<S>(&self, f: &dyn Fn(&A) -> ArrayRef) -> ChunkedArray<S>
where S: PolarsDataType,

Apply a kernel that outputs an array of different type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ChunkApplyKernel<BinaryViewArrayGeneric<str>> for StringChunked

source§

impl ChunkApplyKernel<BinaryViewArrayGeneric<[u8]>> for BinaryChunked

source§

impl ChunkApplyKernel<BooleanArray> for BooleanChunked

source§

impl<T> ChunkApplyKernel<PrimitiveArray<<T as PolarsNumericType>::Native>> for ChunkedArray<T>