[−][src]Struct arrow::array::StructArray
A nested array type where each child (called field) is represented by a separate array.
Implementations
impl StructArray
[src]
pub fn column(&self, pos: usize) -> &ArrayRef
[src]
Returns the field at pos
.
pub fn num_columns(&self) -> usize
[src]
Return the number of fields in this struct array
pub fn columns(&self) -> Vec<&ArrayRef>
[src]
Returns the fields of the struct array
pub fn columns_ref(&self) -> Vec<ArrayRef>
[src]
Returns child array refs of the struct array
pub fn column_names(&self) -> Vec<&str>
[src]
Return field names in this struct array
pub fn column_by_name(&self, column_name: &str) -> Option<&ArrayRef>
[src]
Return child array whose field name equals to column_name
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]
fn slice(&self, offset: usize, length: usize) -> ArrayRef
[src]
fn is_empty(&self) -> bool
[src]
fn offset(&self) -> usize
[src]
fn is_null(&self, index: usize) -> bool
[src]
fn is_valid(&self, index: usize) -> bool
[src]
fn null_count(&self) -> usize
[src]
impl ArrayEqual for StructArray
[src]
fn equals(&self, other: &dyn Array) -> bool
[src]
fn range_equals(
&self,
other: &dyn Array,
start_idx: usize,
end_idx: usize,
other_start_idx: usize
) -> bool
[src]
&self,
other: &dyn Array,
start_idx: usize,
end_idx: usize,
other_start_idx: usize
) -> bool
impl Debug 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
impl From<(Vec<(Field, Arc<dyn Array + 'static>)>, Buffer, usize)> for StructArray
[src]
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 Into<StructArray> for RecordBatch
[src]
fn into(self) -> StructArray
[src]
impl JsonEqual for StructArray
[src]
fn equals_json(&self, json: &[&Value]) -> bool
[src]
fn equals_json_values(&self, json: &[Value]) -> bool
[src]
impl PartialEq<StructArray> for Value
[src]
fn eq(&self, arrow: &StructArray) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Value> for StructArray
[src]
Auto Trait Implementations
impl !RefUnwindSafe for StructArray
impl Send for StructArray
impl Sync for StructArray
impl Unpin for StructArray
impl !UnwindSafe for StructArray
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,