[−][src]Struct arrow::array_data::ArrayData
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.
Methods
impl ArrayData[src]
impl ArrayDatapub fn new(
data_type: DataType,
len: usize,
null_count: Option<usize>,
null_bit_buffer: Option<Buffer>,
offset: usize,
buffers: Vec<Buffer>,
child_data: Vec<ArrayDataRef>
) -> Self[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<ArrayDataRef>
) -> Selfpub fn builder(data_type: DataType) -> ArrayDataBuilder[src]
pub fn builder(data_type: DataType) -> ArrayDataBuilderReturns a builder to construct a ArrayData instance.
pub fn data_type(&self) -> &DataType[src]
pub fn data_type(&self) -> &DataTypeReturns a reference to the data type of this array data
pub fn buffers(&self) -> &[Buffer][src]
pub fn buffers(&self) -> &[Buffer]Returns a slice of buffers for this array data
pub fn child_data(&self) -> &[ArrayDataRef][src]
pub fn child_data(&self) -> &[ArrayDataRef]Returns a slice of children data arrays
pub fn is_null(&self, i: usize) -> bool[src]
pub fn is_null(&self, i: usize) -> boolReturns whether the element at index i is null
pub fn null_bitmap(&self) -> &Option<Bitmap>[src]
pub fn null_bitmap(&self) -> &Option<Bitmap>Returns a reference to the null bitmap of this array data
pub fn is_valid(&self, i: usize) -> bool[src]
pub fn is_valid(&self, i: usize) -> boolReturns whether the element at index i is not null
pub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeReturns the length (i.e., number of elements) of this array
pub fn offset(&self) -> usize[src]
pub fn offset(&self) -> usizeReturns the offset of this array
pub fn null_count(&self) -> usize[src]
pub fn null_count(&self) -> usizeReturns the total number of nulls in this array
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId