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

Method is_valid

arrow-array/src/array/mod.rs:285–287  ·  view source on GitHub ↗

Returns whether the element at `index` is *not* null, the opposite of [`Self::is_null`]. # Example: ``` use arrow_array::{Array, Int32Array}; let array = Int32Array::from(vec![Some(1), None]); assert_eq!(array.is_valid(0), true); assert_eq!(array.is_valid(1), false); ```

(&self, index: usize)

Source from the content-addressed store, hash-verified

283 /// assert_eq!(array.is_valid(1), false);
284 /// ```
285 fn is_valid(&self, index: usize) -> bool {
286 !self.is_null(index)
287 }
288
289 /// Returns the total number of physical null values in this array.
290 ///

Callers

nothing calls this directly

Implementers 15

dictionary_array.rsarrow-array/src/array/dictionary_array
run_array.rsarrow-array/src/array/run_array.rs
primitive_array.rsarrow-array/src/array/primitive_array.
fixed_size_binary_array.rsarrow-array/src/array/fixed_size_binar
byte_view_array.rsarrow-array/src/array/byte_view_array.
mod.rsarrow-array/src/array/mod.rs
union_array.rsarrow-array/src/array/union_array.rs
boolean_array.rsarrow-array/src/array/boolean_array.rs
byte_array.rsarrow-array/src/array/byte_array.rs
list_view_array.rsarrow-array/src/array/list_view_array.
map_array.rsarrow-array/src/array/map_array.rs
struct_array.rsarrow-array/src/array/struct_array.rs

Calls 1

is_nullMethod · 0.45

Tested by

no test coverage detected