Skip to main content

ColumnView

Struct ColumnView 

Source
pub struct ColumnView<'a> {
    pub data: ViewData<'a>,
    pub field: &'a Field,
}

Fields§

§data: ViewData<'a>§field: &'a Field

Implementations§

Source§

impl<'a> ColumnView<'a>

Source

pub fn array(&self) -> &'a dyn Array

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn is_nullable(&self) -> bool

Source

pub fn logical_nulls(&self) -> Option<NullBuffer>

Source

pub fn none_count(&self) -> usize

Source

pub fn none_at(&self, index: usize) -> bool

Source

pub fn base_type(&self) -> ValueType

Source

pub fn get_type(&self) -> ValueType

Source

pub fn is_defined(&self, index: usize) -> bool

Source

pub fn is_none(&self) -> bool

Source

pub fn is_untyped_none(&self) -> bool

Source

pub fn is_bool(&self) -> bool

Source

pub fn is_utf8(&self) -> bool

Source

pub fn is_number(&self) -> bool

Source

pub fn is_text(&self) -> bool

Source

pub fn is_temporal(&self) -> bool

Source

pub fn is_uuid(&self) -> bool

Source

pub fn get_value(&self, index: usize) -> Value

Source

pub fn values(&self) -> Vec<Value>

Source

pub fn as_string(&self, index: usize) -> String

Source

pub fn get_as<T: FromColumnView>(&self, index: usize) -> Result<Option<T>>

Source

pub fn get_str(&self, index: usize) -> Option<&'a str>

Source

pub fn get_bytes(&self, index: usize) -> Option<&'a [u8]>

Source

pub fn as_slice<T>(&self) -> &'a [T]
where Self: AsSlice<'a, T>,

Source

pub fn iter(&self) -> impl Iterator<Item = Value> + '_

Trait Implementations§

Source§

impl<'a> AsSlice<'a, Date> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [Date]

Source§

impl<'a> AsSlice<'a, DateTime> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [DateTime]

Source§

impl<'a> AsSlice<'a, Duration> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [Duration]

Source§

impl<'a> AsSlice<'a, Time> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [Time]

Source§

impl<'a> AsSlice<'a, bool> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [bool]

Source§

impl<'a> AsSlice<'a, f32> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [f32]

Source§

impl<'a> AsSlice<'a, f64> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [f64]

Source§

impl<'a> AsSlice<'a, i8> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [i8]

Source§

impl<'a> AsSlice<'a, i16> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [i16]

Source§

impl<'a> AsSlice<'a, i32> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [i32]

Source§

impl<'a> AsSlice<'a, i64> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [i64]

Source§

impl<'a> AsSlice<'a, u8> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [u8] ⓘ

Source§

impl<'a> AsSlice<'a, u16> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [u16]

Source§

impl<'a> AsSlice<'a, u32> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [u32]

Source§

impl<'a> AsSlice<'a, u64> for ColumnView<'a>

Source§

fn as_slice(&self) -> &'a [u64]

Source§

impl<'a> Clone for ColumnView<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for ColumnView<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> TryFrom<&'a (Arc<Field>, Arc<dyn Array>)> for ColumnView<'a>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from((field, array): &'a (FieldRef, ArrayRef)) -> Result<Self>

Performs the conversion.
Source§

impl<'a> TryFrom<(&'a Arc<dyn Array>, &'a Field)> for ColumnView<'a>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from((array, field): (&'a ArrayRef, &'a Field)) -> Result<Self>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a> Freeze for ColumnView<'a>

§

impl<'a> RefUnwindSafe for ColumnView<'a>

§

impl<'a> Send for ColumnView<'a>

§

impl<'a> Sync for ColumnView<'a>

§

impl<'a> Unpin for ColumnView<'a>

§

impl<'a> UnsafeUnpin for ColumnView<'a>

§

impl<'a> UnwindSafe for ColumnView<'a>

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.