Struct datafusion_row::accessor::RowAccessor
source · [−]pub struct RowAccessor<'a> { /* private fields */ }
Expand description
Provides read/write/modify access to a tuple stored in Row format
at data[base_offset..]
Set / Update data
in [u8]
─ ─ ─ ─ ─ ─ ─ ┐ Read data out as native
│ types or ScalarValues
│
│ ┌───────────────────────┐
│ │
└ ▶│ [u8] │─ ─ ─ ─ ─ ─ ─ ─▶
│ │
└───────────────────────┘
Implementations
sourceimpl<'a> RowAccessor<'a>
impl<'a> RowAccessor<'a>
pub fn new_from_layout(layout: Arc<RowLayout>) -> Self
sourcepub fn point_to(&mut self, offset: usize, data: &'a mut [u8])
pub fn point_to(&mut self, offset: usize, data: &'a mut [u8])
Update this row to point to position offset
in base
pub fn get_bool_opt(&self, idx: usize) -> Option<bool>
pub fn get_u8_opt(&self, idx: usize) -> Option<u8>
pub fn get_u16_opt(&self, idx: usize) -> Option<u16>
pub fn get_u32_opt(&self, idx: usize) -> Option<u32>
pub fn get_u64_opt(&self, idx: usize) -> Option<u64>
pub fn get_i8_opt(&self, idx: usize) -> Option<i8>
pub fn get_i16_opt(&self, idx: usize) -> Option<i16>
pub fn get_i32_opt(&self, idx: usize) -> Option<i32>
pub fn get_i64_opt(&self, idx: usize) -> Option<i64>
pub fn get_f32_opt(&self, idx: usize) -> Option<f32>
pub fn get_f64_opt(&self, idx: usize) -> Option<f64>
pub fn get_bool_scalar(&self, idx: usize) -> ScalarValue
pub fn get_u8_scalar(&self, idx: usize) -> ScalarValue
pub fn get_u16_scalar(&self, idx: usize) -> ScalarValue
pub fn get_u32_scalar(&self, idx: usize) -> ScalarValue
pub fn get_u64_scalar(&self, idx: usize) -> ScalarValue
pub fn get_i8_scalar(&self, idx: usize) -> ScalarValue
pub fn get_i16_scalar(&self, idx: usize) -> ScalarValue
pub fn get_i32_scalar(&self, idx: usize) -> ScalarValue
pub fn get_i64_scalar(&self, idx: usize) -> ScalarValue
pub fn get_f32_scalar(&self, idx: usize) -> ScalarValue
pub fn get_f64_scalar(&self, idx: usize) -> ScalarValue
pub fn get_as_scalar(&self, dt: &DataType, index: usize) -> ScalarValue
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for RowAccessor<'a>
impl<'a> Send for RowAccessor<'a>
impl<'a> Sync for RowAccessor<'a>
impl<'a> Unpin for RowAccessor<'a>
impl<'a> !UnwindSafe for RowAccessor<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more