MCPcopy Create free account
hub / github.com/apache/datafusion / nulls

Method nulls

datafusion/functions/src/strings.rs:1179–1191  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1177
1178 #[inline]
1179 pub fn nulls(&self) -> Option<NullBuffer> {
1180 match &self {
1181 Self::Scalar(_)
1182 | Self::NonNullableArray(_)
1183 | Self::NonNullableStringViewArray(_)
1184 | Self::NonNullableLargeStringArray(_)
1185 | Self::NonNullableBinaryArray(_) => None,
1186 Self::NullableArray(array) => array.nulls().cloned(),
1187 Self::NullableStringViewArray(array) => array.nulls().cloned(),
1188 Self::NullableLargeStringArray(array) => array.nulls().cloned(),
1189 Self::NullableBinaryArray(array) => array.nulls().cloned(),
1190 }
1191 }
1192}
1193
1194#[cfg(test)]

Callers 15

evaluateMethod · 0.45
try_newMethod · 0.45
concat_elements_utf8viewFunction · 0.45
gc_array_childrenFunction · 0.45
insert_batchMethod · 0.45
compute_null_maskFunction · 0.45
apply_null_maskFunction · 0.45
map_from_arrays_innerFunction · 0.45
str_to_map_implFunction · 0.45
map_from_entries_innerFunction · 0.45

Calls 1

clonedMethod · 0.45

Tested by 1

test_create_record_batchFunction · 0.36