Struct arrow::array::GenericStringArray [−][src]
pub struct GenericStringArray<OffsetSize: StringOffsetSizeTrait> { /* fields omitted */ }
Expand description
Generic struct for [Large]StringArray
Implementations
Returns the length for the element at index i
.
Returns the offset values in the offsets buffer
Returns a clone of the value data buffer
Returns the element at index
Safety
caller is responsible for ensuring that index is within the array bounds
pub fn from_iter_values<Ptr, I: IntoIterator<Item = Ptr>>(iter: I) -> Self where
Ptr: AsRef<str>,
pub fn from_iter_values<Ptr, I: IntoIterator<Item = Ptr>>(iter: I) -> Self where
Ptr: AsRef<str>,
Creates a GenericStringArray
based on an iterator of values without nulls
pub fn iter(&'a self) -> GenericStringIter<'a, T>ⓘNotable traits for GenericStringIter<'a, T>
impl<'a, T: StringOffsetSizeTrait> Iterator for GenericStringIter<'a, T> type Item = Option<&'a str>;
pub fn iter(&'a self) -> GenericStringIter<'a, T>ⓘNotable traits for GenericStringIter<'a, T>
impl<'a, T: StringOffsetSizeTrait> Iterator for GenericStringIter<'a, T> type Item = Option<&'a str>;
constructs a new iterator
Trait Implementations
Returns a reference-counted pointer to the underlying data of this array.
Returns a zero-copy slice of this array with the indicated offset and length. Read more
Returns the offset into the underlying data used by this array(-slice).
Note that the underlying data can be shared by many arrays.
This defaults to 0
. Read more
Returns whether the element at index
is null.
When using this function on a slice, the index is relative to the slice. Read more
Returns whether the element at index
is not null.
When using this function on a slice, the index is relative to the slice. Read more
Returns the total number of null values in this array. Read more
Returns the total number of bytes of memory pointed to by this array. The buffers store bytes in the Arrow memory format, and include the data as well as the validity map. Read more
Returns the total number of bytes of memory occupied physically by this array.
This value will always be greater than returned by get_buffer_memory_size()
and
includes the overhead of the data structures that contain the pointers to the various buffers. Read more
returns two pointers that represent this array in the C Data Interface (FFI)
Performs the conversion.
impl<OffsetSize: StringOffsetSizeTrait> From<Vec<&'_ str, Global>> for GenericStringArray<OffsetSize>
impl<OffsetSize: StringOffsetSizeTrait> From<Vec<&'_ str, Global>> for GenericStringArray<OffsetSize>
impl<OffsetSize: StringOffsetSizeTrait> From<Vec<Option<&'_ str>, Global>> for GenericStringArray<OffsetSize>
impl<OffsetSize: StringOffsetSizeTrait> From<Vec<Option<&'_ str>, Global>> for GenericStringArray<OffsetSize>
impl<OffsetSize: StringOffsetSizeTrait> From<Vec<String, Global>> for GenericStringArray<OffsetSize>
impl<OffsetSize: StringOffsetSizeTrait> From<Vec<String, Global>> for GenericStringArray<OffsetSize>
impl<'a, Ptr, OffsetSize: StringOffsetSizeTrait> FromIterator<Option<Ptr>> for GenericStringArray<OffsetSize> where
Ptr: AsRef<str>,
impl<'a, Ptr, OffsetSize: StringOffsetSizeTrait> FromIterator<Option<Ptr>> for GenericStringArray<OffsetSize> where
Ptr: AsRef<str>,
Creates a value from an iterator. Read more
impl<OffsetSize: StringOffsetSizeTrait> PartialEq<GenericStringArray<OffsetSize>> for GenericStringArray<OffsetSize>
impl<OffsetSize: StringOffsetSizeTrait> PartialEq<GenericStringArray<OffsetSize>> for GenericStringArray<OffsetSize>
Auto Trait Implementations
impl<OffsetSize> RefUnwindSafe for GenericStringArray<OffsetSize> where
OffsetSize: RefUnwindSafe,
impl<OffsetSize> Send for GenericStringArray<OffsetSize>
impl<OffsetSize> Sync for GenericStringArray<OffsetSize>
impl<OffsetSize> Unpin for GenericStringArray<OffsetSize>
impl<OffsetSize> UnwindSafe for GenericStringArray<OffsetSize> where
OffsetSize: RefUnwindSafe,