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

Method try_from_binary

arrow-array/src/array/string_array.rs:56–59  ·  view source on GitHub ↗

Fallibly creates a [`GenericStringArray`] from a [`GenericBinaryArray`] returning an error if [`GenericBinaryArray`] contains invalid UTF-8 data

(v: GenericBinaryArray<OffsetSize>)

Source from the content-addressed store, hash-verified

54 /// Fallibly creates a [`GenericStringArray`] from a [`GenericBinaryArray`] returning
55 /// an error if [`GenericBinaryArray`] contains invalid UTF-8 data
56 pub fn try_from_binary(v: GenericBinaryArray<OffsetSize>) -> Result<Self, ArrowError> {
57 let (offsets, values, nulls) = v.into_parts();
58 Self::try_new(offsets, values, nulls)
59 }
60}
61
62impl<OffsetSize: OffsetSizeTrait> From<GenericListArray<OffsetSize>>

Callers

nothing calls this directly

Calls 2

try_newFunction · 0.85
into_partsMethod · 0.45

Tested by

no test coverage detected