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
impl ArrayData
[src]
impl ArrayData
[src]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
[src]
data_type: DataType,
len: usize,
null_count: Option<usize>,
null_bit_buffer: Option<Buffer>,
offset: usize,
buffers: Vec<Buffer>,
child_data: Vec<ArrayData>
) -> Self
pub const fn builder(data_type: DataType) -> ArrayDataBuilder
[src]
pub const fn builder(data_type: DataType) -> ArrayDataBuilder
[src]Returns a builder to construct a ArrayData
instance.
pub const fn data_type(&self) -> &DataType
[src]
pub const fn data_type(&self) -> &DataType
[src]Returns a reference to the data type of this array data
pub fn child_data(&self) -> &[ArrayData]ⓘ
[src]
pub fn child_data(&self) -> &[ArrayData]ⓘ
[src]Returns a slice of children data arrays
pub const fn null_bitmap(&self) -> &Option<Bitmap>
[src]
pub const fn null_bitmap(&self) -> &Option<Bitmap>
[src]Returns a reference to the null bitmap of this array data
pub fn null_buffer(&self) -> Option<&Buffer>
[src]
pub fn null_buffer(&self) -> Option<&Buffer>
[src]Returns a reference to the null buffer of this array data.
pub const fn is_empty(&self) -> bool
[src]
pub const fn null_count(&self) -> usize
[src]
pub const fn null_count(&self) -> usize
[src]Returns the total number of nulls in this array
pub fn get_buffer_memory_size(&self) -> usize
[src]
pub fn get_buffer_memory_size(&self) -> usize
[src]Returns the total number of bytes of memory occupied by the buffers owned by this ArrayData.
pub fn get_array_memory_size(&self) -> usize
[src]
pub fn get_array_memory_size(&self) -> usize
[src]Returns the total number of bytes of memory occupied physically by this ArrayData.
Trait Implementations
impl<OffsetSize: BinaryOffsetSizeTrait> From<ArrayData> for GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> From<ArrayData> for GenericBinaryArray<OffsetSize>
[src]impl From<ArrayData> for FixedSizeBinaryArray
[src]
impl From<ArrayData> for FixedSizeBinaryArray
[src]impl From<ArrayData> for UnionArray
[src]
impl From<ArrayData> for UnionArray
[src]impl From<ArrayData> for DecimalArray
[src]
impl From<ArrayData> for DecimalArray
[src]impl From<ArrayData> for BooleanArray
[src]
impl From<ArrayData> for BooleanArray
[src]impl<T: ArrowPrimitiveType> From<ArrayData> for DictionaryArray<T>
[src]
impl<T: ArrowPrimitiveType> From<ArrayData> for DictionaryArray<T>
[src]Constructs a DictionaryArray
from an array data reference.
impl<OffsetSize: OffsetSizeTrait> From<ArrayData> for GenericListArray<OffsetSize>
[src]
impl<OffsetSize: OffsetSizeTrait> From<ArrayData> for GenericListArray<OffsetSize>
[src]impl From<ArrayData> for FixedSizeListArray
[src]
impl From<ArrayData> for FixedSizeListArray
[src]impl<T: ArrowPrimitiveType> From<ArrayData> for PrimitiveArray<T>
[src]
impl<T: ArrowPrimitiveType> From<ArrayData> for PrimitiveArray<T>
[src]Constructs a PrimitiveArray
from an array data reference.
impl<OffsetSize: StringOffsetSizeTrait> From<ArrayData> for GenericStringArray<OffsetSize>
[src]
impl<OffsetSize: StringOffsetSizeTrait> From<ArrayData> for GenericStringArray<OffsetSize>
[src]impl From<ArrayData> for StructArray
[src]
impl From<ArrayData> for StructArray
[src]impl TryFrom<ArrayData> for ArrowArray
[src]
impl TryFrom<ArrayData> for ArrowArray
[src]impl TryFrom<ArrowArray> for ArrayData
[src]
impl TryFrom<ArrowArray> for ArrayData
[src]type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
fn try_from(value: ArrowArray) -> Result<Self>
[src]
fn try_from(value: ArrowArray) -> Result<Self>
[src]Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ArrayData
impl Send for ArrayData
impl Sync for ArrayData
impl Unpin for ArrayData
impl UnwindSafe for ArrayData
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,