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

Method is_valid

datafusion/functions/src/strings.rs:1164–1176  ·  view source on GitHub ↗
(&self, i: usize)

Source from the content-addressed store, hash-verified

1162impl ColumnarValueRef<'_> {
1163 #[inline]
1164 pub fn is_valid(&self, i: usize) -> bool {
1165 match &self {
1166 Self::Scalar(_)
1167 | Self::NonNullableArray(_)
1168 | Self::NonNullableLargeStringArray(_)
1169 | Self::NonNullableStringViewArray(_)
1170 | Self::NonNullableBinaryArray(_) => true,
1171 Self::NullableArray(array) => array.is_valid(i),
1172 Self::NullableStringViewArray(array) => array.is_valid(i),
1173 Self::NullableLargeStringArray(array) => array.is_valid(i),
1174 Self::NullableBinaryArray(array) => array.is_valid(i),
1175 }
1176 }
1177
1178 #[inline]
1179 pub fn nulls(&self) -> Option<NullBuffer> {

Callers 15

any_match_for_rangeFunction · 0.45
retrieve_range_argsFunction · 0.45
scalar_min_maxFunction · 0.45
general_list_repeatFunction · 0.45
sort_list_with_nullsFunction · 0.45
array_arrayFunction · 0.45
filter_list_valuesFunction · 0.45
is_nullMethod · 0.45
take_nMethod · 0.45
test_lex_sort_by_floatFunction · 0.45
map_deduplicate_keysFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_lex_sort_by_floatFunction · 0.36