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

Function scatter_boolean

datafusion/physical-expr-common/src/utils.rs:239–249  ·  view source on GitHub ↗
(
    truthy: &BooleanArray,
    mask: &BooleanBuffer,
    output_len: usize,
    selectivity: f64,
)

Source from the content-addressed store, hash-verified

237}
238
239fn scatter_boolean(
240 truthy: &BooleanArray,
241 mask: &BooleanBuffer,
242 output_len: usize,
243 selectivity: f64,
244) -> BooleanArray {
245 let values = scatter_bits(truthy.values(), mask, output_len, selectivity);
246 let nulls = scatter_null_mask(truthy.nulls(), mask, output_len, selectivity);
247
248 BooleanArray::new(values, nulls)
249}
250
251fn scatter_bytes<T: ByteArrayType>(
252 truthy: &GenericByteArray<T>,

Callers

nothing calls this directly

Calls 8

scatter_bitsFunction · 0.85
scatter_null_maskFunction · 0.85
newFunction · 0.85
scatterFunction · 0.85
as_boolean_arrayFunction · 0.85
valuesMethod · 0.45
nullsMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…