MCPcopy Create free account
hub / github.com/apache/arrow-rs / take_boolean

Function take_boolean

arrow-select/src/take.rs:484–491  ·  view source on GitHub ↗

`take` implementation for boolean arrays

(
    values: &BooleanArray,
    indices: &PrimitiveArray<IndexType>,
)

Source from the content-addressed store, hash-verified

482
483/// `take` implementation for boolean arrays
484fn take_boolean<IndexType: ArrowPrimitiveType>(
485 values: &BooleanArray,
486 indices: &PrimitiveArray<IndexType>,
487) -> BooleanArray {
488 let val_buf = take_bits(values.values(), indices);
489 let null_buf = take_nulls(values.nulls(), indices);
490 BooleanArray::new(val_buf, null_buf)
491}
492
493/// `take` implementation for string arrays
494fn take_bytes<T: ByteArrayType, IndexType: ArrowPrimitiveType>(

Callers

nothing calls this directly

Calls 4

take_nullsFunction · 0.85
take_bitsFunction · 0.70
valuesMethod · 0.45
nullsMethod · 0.45

Tested by

no test coverage detected