Struct arrow::array::StructArray [−][src]
pub struct StructArray { /* fields omitted */ }
A nested array type where each child (called field) is represented by a separate array.
Implementations
impl StructArray
[src]
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
Note: A schema can currently have duplicate field names, in which case the first field will always be selected. This issue will be addressed in ARROW-11178
Trait Implementations
impl Array for StructArray
[src]
impl Array for StructArray
[src]fn as_any(&self) -> &dyn Any
[src]
fn data(&self) -> &ArrayData
[src]
fn len(&self) -> usize
[src]
Returns the length (i.e., number of elements) of this array
fn get_buffer_memory_size(&self) -> usize
[src]
Returns the total number of bytes of memory occupied by the buffers owned by this StructArray.
fn get_array_memory_size(&self) -> usize
[src]
Returns the total number of bytes of memory occupied physically by this StructArray.
fn data_ref(&self) -> &ArrayData
[src]
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]
fn to_raw(&self) -> Result<(*const FFI_ArrowArray, *const FFI_ArrowSchema)>
[src]
impl From<&'_ StructArray> for RecordBatch
[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<RecordBatch> for StructArray
[src]
impl From<RecordBatch> for StructArray
[src]fn from(batch: RecordBatch) -> Self
[src]
impl JsonEqual for StructArray
[src]
impl JsonEqual for StructArray
[src]impl PartialEq<StructArray> for StructArray
[src]
impl PartialEq<StructArray> for StructArray
[src]impl PartialEq<Value> for StructArray
[src]
impl PartialEq<Value> for StructArray
[src]Auto Trait Implementations
impl !RefUnwindSafe for StructArray
impl !RefUnwindSafe for StructArray
impl Send for StructArray
impl Send for StructArray
impl Sync for StructArray
impl Sync for StructArray
impl Unpin for StructArray
impl Unpin for StructArray
impl !UnwindSafe for StructArray
impl !UnwindSafe for StructArray