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

Method is_dense

arrow-array/src/array/union_array.rs:323–328  ·  view source on GitHub ↗

Returns whether the `UnionArray` is dense (or sparse if `false`).

(&self)

Source from the content-addressed store, hash-verified

321
322 /// Returns whether the `UnionArray` is dense (or sparse if `false`).
323 pub fn is_dense(&self) -> bool {
324 match self.data_type() {
325 DataType::Union(_, mode) => mode == &UnionMode::Dense,
326 _ => unreachable!("Union array's data type is not a union!"),
327 }
328 }
329
330 /// Returns a zero-copy slice of this array with the indicated offset and length.
331 pub fn slice(&self, offset: usize, length: usize) -> Self {

Callers 2

logical_nullsMethod · 0.80
fmtMethod · 0.80

Calls 1

data_typeMethod · 0.45

Tested by

no test coverage detected