[−][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 ArrayData
pub fn new(
data_type: DataType,
len: i64,
null_count: i64,
null_bit_buffer: Option<Buffer>,
offset: i64,
buffers: Vec<Buffer>,
child_data: Vec<ArrayDataRef>
) -> Self
[src]
pub fn new(
data_type: DataType,
len: i64,
null_count: i64,
null_bit_buffer: Option<Buffer>,
offset: i64,
buffers: Vec<Buffer>,
child_data: Vec<ArrayDataRef>
) -> Self
pub fn builder(data_type: DataType) -> ArrayDataBuilder
[src]
pub fn builder(data_type: DataType) -> ArrayDataBuilder
Returns a builder to construct a ArrayData
instance.
pub fn data_type(&self) -> &DataType
[src]
pub fn data_type(&self) -> &DataType
Returns 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: i64) -> bool
[src]
pub fn is_null(&self, i: i64) -> bool
Returns 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: i64) -> bool
[src]
pub fn is_valid(&self, i: i64) -> bool
Returns whether the element at index i
is not null
pub fn len(&self) -> i64
[src]
pub fn len(&self) -> i64
Returns the length (i.e., number of elements) of this array
pub fn offset(&self) -> i64
[src]
pub fn offset(&self) -> i64
Returns the offset of this array
pub fn null_count(&self) -> i64
[src]
pub fn null_count(&self) -> i64
Returns the total number of nulls in this array
Trait Implementations
impl PartialEq<ArrayData> for ArrayData
[src]
impl PartialEq<ArrayData> for ArrayData
fn eq(&self, other: &ArrayData) -> bool
[src]
fn eq(&self, other: &ArrayData) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ArrayData) -> bool
[src]
fn ne(&self, other: &ArrayData) -> bool
This method tests for !=
.
impl Debug for ArrayData
[src]
impl Debug for ArrayData
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<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>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
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
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<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>
try_from
)Performs the conversion.
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 T
Mutably borrows from an owned value. Read more