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

Method to_string_view

arrow-array/src/array/byte_view_array.rs:1099–1102  ·  view source on GitHub ↗

Convert the [`BinaryViewArray`] to [`StringViewArray`] If items not utf8 data, validate will fail and error returned.

(self)

Source from the content-addressed store, hash-verified

1097 /// Convert the [`BinaryViewArray`] to [`StringViewArray`]
1098 /// If items not utf8 data, validate will fail and error returned.
1099 pub fn to_string_view(self) -> Result<StringViewArray, ArrowError> {
1100 StringViewType::validate(self.views(), self.data_buffers())?;
1101 unsafe { Ok(self.to_string_view_unchecked()) }
1102 }
1103
1104 /// Convert the [`BinaryViewArray`] to [`StringViewArray`]
1105 /// # Safety

Callers 1

Calls 4

validateFunction · 0.85
viewsMethod · 0.80
data_buffersMethod · 0.80

Tested by

no test coverage detected