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

Function parse_string_view

arrow-cast/src/cast/string.rs:77–85  ·  view source on GitHub ↗

Parse UTF-8 View

(
    array: &dyn Array,
    cast_options: &CastOptions,
)

Source from the content-addressed store, hash-verified

75
76/// Parse UTF-8 View
77pub(crate) fn parse_string_view<P: Parser>(
78 array: &dyn Array,
79 cast_options: &CastOptions,
80) -> Result<ArrayRef, ArrowError> {
81 let string_view_array = array.as_string_view();
82 parse_string_iter::<P, _, _>(string_view_array.iter(), cast_options, || {
83 string_view_array.nulls().cloned()
84 })
85}
86
87fn parse_string_iter<
88 'a,

Callers

nothing calls this directly

Calls 3

as_string_viewMethod · 0.80
iterMethod · 0.45
nullsMethod · 0.45

Tested by

no test coverage detected