[−][src]Struct arrow::array::StructArray
A nested array type where each child (called field) is represented by a separate array.
Methods
impl StructArray
[src]
Trait Implementations
impl Array for StructArray
[src]
fn as_any(&self) -> &dyn Any
[src]
fn data(&self) -> ArrayDataRef
[src]
fn data_ref(&self) -> &ArrayDataRef
[src]
fn len(&self) -> usize
[src]
Returns the length (i.e., number of elements) of this array
fn data_type(&self) -> &DataType
[src]
Returns a reference to the data type of this array
fn slice(&self, offset: usize, length: usize) -> ArrayRef
[src]
Returns a zero-copy slice of this array with the indicated offset and length.
fn offset(&self) -> usize
[src]
Returns the offset of this array
fn is_null(&self, i: usize) -> bool
[src]
Returns whether the element at index i
is null
fn is_valid(&self, i: usize) -> bool
[src]
Returns whether the element at index i
is not null
fn null_count(&self) -> usize
[src]
Returns the total number of nulls in this array
impl From<Arc<ArrayData>> for StructArray
[src]
fn from(data: ArrayDataRef) -> Self
[src]
impl From<Vec<(Field, Arc<dyn Array + 'static>)>> for StructArray
[src]
impl<'_> From<&'_ StructArray> for RecordBatch
[src]
fn from(struct_array: &StructArray) -> Self
[src]
Create a record batch from struct array.
This currently does not flatten and nested struct types
Auto Trait Implementations
impl Send for StructArray
impl Unpin for StructArray
impl Sync for StructArray
impl !UnwindSafe for StructArray
impl !RefUnwindSafe for StructArray
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> FromCast<T> for T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,