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

Method is_ascii

arrow-array/src/array/byte_array.rs:288–293  ·  view source on GitHub ↗

Returns true if all data within this array is ASCII

(&self)

Source from the content-addressed store, hash-verified

286
287 /// Returns true if all data within this array is ASCII
288 pub fn is_ascii(&self) -> bool {
289 let offsets = self.value_offsets();
290 let start = offsets.first().unwrap();
291 let end = offsets.last().unwrap();
292 self.value_data()[start.as_usize()..end.as_usize()].is_ascii()
293 }
294
295 /// Returns the offset values in the offsets buffer
296 #[inline]

Callers 2

op_scalarFunction · 0.45
ilikeMethod · 0.45

Calls 5

firstMethod · 0.80
as_usizeMethod · 0.80
value_offsetsMethod · 0.45
lastMethod · 0.45
value_dataMethod · 0.45

Tested by

no test coverage detected