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

Function decode_string_view

arrow-row/src/variable.rs:432–439  ·  view source on GitHub ↗

Decodes a string view array from `rows` with the provided `options` # Safety The row must contain valid UTF-8 data

(
    rows: &mut [&[u8]],
    options: SortOptions,
    validate_utf8: bool,
)

Source from the content-addressed store, hash-verified

430///
431/// The row must contain valid UTF-8 data
432pub unsafe fn decode_string_view(
433 rows: &mut [&[u8]],
434 options: SortOptions,
435 validate_utf8: bool,
436) -> StringViewArray {
437 let view = decode_binary_view_inner(rows, options, validate_utf8);
438 unsafe { view.to_string_view_unchecked() }
439}
440
441pub fn decode_null_value(rows: &mut [&[u8]], options: SortOptions) {
442 for row in rows.iter_mut() {

Callers

nothing calls this directly

Calls 2

decode_binary_view_innerFunction · 0.85

Tested by

no test coverage detected