MCPcopy Create free account
hub / github.com/apache/datafusion / scatter_byte_view

Function scatter_byte_view

datafusion/physical-expr-common/src/utils.rs:295–312  ·  view source on GitHub ↗
(
    truthy: &GenericByteViewArray<T>,
    mask: &BooleanBuffer,
    output_len: usize,
    selectivity: f64,
)

Source from the content-addressed store, hash-verified

293}
294
295fn scatter_byte_view<T: ByteViewType>(
296 truthy: &GenericByteViewArray<T>,
297 mask: &BooleanBuffer,
298 output_len: usize,
299 selectivity: f64,
300) -> GenericByteViewArray<T> {
301 let new_views = scatter_native(truthy.views(), mask, output_len, selectivity);
302 let nulls = scatter_null_mask(truthy.nulls(), mask, output_len, selectivity);
303
304 // SAFETY: views and data buffers are copied from a valid source array
305 unsafe {
306 GenericByteViewArray::new_unchecked(
307 new_views,
308 truthy.data_buffers().to_vec(),
309 nulls,
310 )
311 }
312}
313
314fn scatter_fixed_size_binary(
315 truthy: &FixedSizeBinaryArray,

Callers

nothing calls this directly

Calls 4

scatter_nativeFunction · 0.85
scatter_null_maskFunction · 0.85
to_vecMethod · 0.80
nullsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…