Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
RowReader in datafusion_row::reader - Rust
[go: Go Back, main page]

datafusion_row::reader

Struct RowReader

Source
pub struct RowReader<'a> { /* private fields */ }
Expand description

Read the tuple data[base_offset..] we are currently pointing to

Implementations§

Source§

impl<'a> RowReader<'a>

Source

pub fn new(schema: &Schema) -> Self

new

Source

pub fn point_to(&mut self, offset: usize, data: &'a [u8])

Update this row to point to position offset in base

Source

pub fn get_bool_opt(&self, idx: usize) -> Option<bool>

Source

pub fn get_u8_opt(&self, idx: usize) -> Option<u8>

Source

pub fn get_u16_opt(&self, idx: usize) -> Option<u16>

Source

pub fn get_u32_opt(&self, idx: usize) -> Option<u32>

Source

pub fn get_u64_opt(&self, idx: usize) -> Option<u64>

Source

pub fn get_i8_opt(&self, idx: usize) -> Option<i8>

Source

pub fn get_i16_opt(&self, idx: usize) -> Option<i16>

Source

pub fn get_i32_opt(&self, idx: usize) -> Option<i32>

Source

pub fn get_i64_opt(&self, idx: usize) -> Option<i64>

Source

pub fn get_f32_opt(&self, idx: usize) -> Option<f32>

Source

pub fn get_f64_opt(&self, idx: usize) -> Option<f64>

Trait Implementations§

Source§

impl<'a> Debug for RowReader<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for RowReader<'a>

§

impl<'a> RefUnwindSafe for RowReader<'a>

§

impl<'a> Send for RowReader<'a>

§

impl<'a> Sync for RowReader<'a>

§

impl<'a> Unpin for RowReader<'a>

§

impl<'a> UnwindSafe for RowReader<'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
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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

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