Struct arrow::array::ArrayData [−][src]
pub struct ArrayData { /* fields omitted */ }
Expand description
An generic representation of Arrow array data which encapsulates common attributes and
operations for Arrow array. Specific operations for different arrays types (e.g.,
primitive, list, struct) are implemented in Array
.
Implementations
pub fn new(
data_type: DataType,
len: usize,
null_count: Option<usize>,
null_bit_buffer: Option<Buffer>,
offset: usize,
buffers: Vec<Buffer>,
child_data: Vec<ArrayData>
) -> Self
Returns a builder to construct a ArrayData
instance.
Returns a reference to the data type of this array data
Returns a slice of children data arrays
Returns a reference to the null bitmap of this array data
Returns a reference to the null buffer of this array data.
Returns the total number of nulls in this array
Returns the total number of bytes of memory occupied by the buffers owned by this ArrayData.
Returns the total number of bytes of memory occupied physically by this ArrayData.
Trait Implementations
Constructs a DictionaryArray
from an array data reference.
Constructs a PrimitiveArray
from an array data reference.
type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ArrayData
impl UnwindSafe for ArrayData
Blanket Implementations
Mutably borrows from an owned value. Read more