[−][src]Struct arrow::array::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]
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>
) -> Self
[src]
data_type: DataType,
len: usize,
null_count: Option<usize>,
null_bit_buffer: Option<Buffer>,
offset: usize,
buffers: Vec<Buffer>,
child_data: Vec<ArrayDataRef>
) -> Self
pub fn builder(data_type: DataType) -> ArrayDataBuilder
[src]
Returns a builder to construct a ArrayData
instance.
pub fn data_type(&self) -> &DataType
[src]
Returns a reference to the data type of this array data
pub fn buffers(&self) -> &[Buffer]
[src]
Returns a slice of buffers for this array data
pub fn child_data(&self) -> &[ArrayDataRef]
[src]
Returns a slice of children data arrays
pub fn is_null(&self, i: usize) -> bool
[src]
Returns whether the element at index i
is null
pub fn null_bitmap(&self) -> &Option<Bitmap>
[src]
Returns a reference to the null bitmap of this array data
pub fn is_valid(&self, i: usize) -> bool
[src]
Returns whether the element at index i
is not null
pub fn len(&self) -> usize
[src]
Returns the length (i.e., number of elements) of this array
pub fn offset(&self) -> usize
[src]
Returns the offset of this array
pub fn null_count(&self) -> usize
[src]
Returns the total number of nulls in this array
Trait Implementations
impl PartialEq<ArrayData> for ArrayData
[src]
impl Clone for ArrayData
[src]
fn clone(&self) -> ArrayData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ArrayData
[src]
Auto Trait Implementations
impl Sync for ArrayData
impl Send for ArrayData
impl Unpin for ArrayData
impl RefUnwindSafe for ArrayData
impl UnwindSafe for ArrayData
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for 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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> FromCast<T> for T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,