Skip to main content

StringColumnRef

Enum StringColumnRef 

Source
pub enum StringColumnRef<'a> {
    DictionaryInt8(&'a DictionaryArray<Int8Type>, &'a StringArray),
    DictionaryInt32(&'a DictionaryArray<Int32Type>, &'a StringArray),
    Utf8(&'a StringArray),
    Utf8View(&'a StringViewArray),
}
Expand description

Reference to a string column in a supported Arrow string representation.

Variants§

§

DictionaryInt8(&'a DictionaryArray<Int8Type>, &'a StringArray)

§

DictionaryInt32(&'a DictionaryArray<Int32Type>, &'a StringArray)

§

Utf8(&'a StringArray)

§

Utf8View(&'a StringViewArray)

Implementations§

Source§

impl StringColumnRef<'_>

Source

pub fn len(&self) -> usize

Returns the number of rows.

Source

pub fn is_empty(&self) -> bool

Returns whether the column contains no rows.

Source

pub fn try_from_array(array: &dyn Array) -> Option<StringColumnRef<'_>>

Returns a string view when array uses Utf8 or Utf8View encoding.

Source

pub fn value(&self, i: usize) -> &str

Returns the string value at row i.

§Panics

Panics if i is out of bounds or a dictionary column contains an invalid key.

Source

pub fn is_null(&self, i: usize) -> bool

Returns whether the value at row i is null.

Source

pub fn value_opt(&self, i: usize) -> Option<&str>

Returns the string value at row i, or None when it is null.

Trait Implementations§

Source§

impl<'a> Debug for StringColumnRef<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for StringColumnRef<'a>

§

impl<'a> !UnwindSafe for StringColumnRef<'a>

§

impl<'a> Freeze for StringColumnRef<'a>

§

impl<'a> Send for StringColumnRef<'a>

§

impl<'a> Sync for StringColumnRef<'a>

§

impl<'a> Unpin for StringColumnRef<'a>

§

impl<'a> UnsafeUnpin for StringColumnRef<'a>

Blanket Implementations§

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
§

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

§

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

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.

§

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<T> Ungil for T
where T: Send,