Expand description
NullArray — the type whose every value is null and whose every buffer
is absent.
Arrow’s Null type carries no validity bitmap and no values buffer at all;
the length alone is the entire representation. AstRS uses it for ports
declared type: any that never carry data, and stage 2 encodes it as a
record-batch node with zero buffers.
use astrs_data::array::{Array, NullArray};
let nulls = NullArray::new(3);
assert_eq!(nulls.len(), 3);
assert_eq!(nulls.null_count(), 3);
assert_eq!(nulls.buffer_memory_size(), 0, "no buffers at all");
assert!(nulls.is_null(0));Structs§
- Null
Array - A column of
lennulls and nothing else.