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

Method new

arrow-array/src/array/boolean_array.rs:89–94  ·  view source on GitHub ↗

Create a new [`BooleanArray`] from the provided values and nulls # Panics Panics if `values.len() != nulls.len()`

(values: BooleanBuffer, nulls: Option<NullBuffer>)

Source from the content-addressed store, hash-verified

87 ///
88 /// Panics if `values.len() != nulls.len()`
89 pub fn new(values: BooleanBuffer, nulls: Option<NullBuffer>) -> Self {
90 if let Some(n) = nulls.as_ref() {
91 assert_eq!(values.len(), n.len());
92 }
93 Self { values, nulls }
94 }
95
96 /// Create a new [`BooleanArray`] with length `len` consisting only of nulls
97 pub fn new_null(len: usize) -> Self {

Callers

nothing calls this directly

Calls 6

as_refMethod · 0.45
as_ptrMethod · 0.45
innerMethod · 0.45
valuesMethod · 0.45
offsetMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected