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
RowAccessor in datafusion::row::accessor - Rust
[go: Go Back, main page]

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§

source§

impl<'a> RowAccessor<'a>

source

pub fn new(schema: &Schema) -> RowAccessor<'a>

new

source

pub fn new_from_layout(layout: Arc<RowLayout>) -> RowAccessor<'a>

source

pub fn point_to(&mut self, offset: usize, data: &'a mut [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>

source

pub fn get_i128_opt(&self, idx: usize) -> Option<i128>

source

pub fn get_bool_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_u8_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_u16_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_u32_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_u64_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_i8_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_i16_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_i32_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_i64_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_f32_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_f64_scalar(&self, idx: usize) -> ScalarValue

source

pub fn get_as_scalar(&self, dt: &DataType, index: usize) -> ScalarValue

source

pub fn add_u8(&mut self, idx: usize, value: u8)

add field at idx with value

source

pub fn add_u16(&mut self, idx: usize, value: u16)

add field at idx with value

source

pub fn add_u32(&mut self, idx: usize, value: u32)

add field at idx with value

source

pub fn add_u64(&mut self, idx: usize, value: u64)

add field at idx with value

source

pub fn add_i8(&mut self, idx: usize, value: i8)

add field at idx with value

source

pub fn add_i16(&mut self, idx: usize, value: i16)

add field at idx with value

source

pub fn add_i32(&mut self, idx: usize, value: i32)

add field at idx with value

source

pub fn add_i64(&mut self, idx: usize, value: i64)

add field at idx with value

source

pub fn add_f32(&mut self, idx: usize, value: f32)

add field at idx with value

source

pub fn add_f64(&mut self, idx: usize, value: f64)

add field at idx with value

source

pub fn add_i128(&mut self, idx: usize, value: i128)

add field at idx with value

source

pub fn max_bool(&mut self, idx: usize, value: bool)

check max then update

source

pub fn max_u8(&mut self, idx: usize, value: u8)

check max then update

source

pub fn max_u16(&mut self, idx: usize, value: u16)

check max then update

source

pub fn max_u32(&mut self, idx: usize, value: u32)

check max then update

source

pub fn max_u64(&mut self, idx: usize, value: u64)

check max then update

source

pub fn max_i8(&mut self, idx: usize, value: i8)

check max then update

source

pub fn max_i16(&mut self, idx: usize, value: i16)

check max then update

source

pub fn max_i32(&mut self, idx: usize, value: i32)

check max then update

source

pub fn max_i64(&mut self, idx: usize, value: i64)

check max then update

source

pub fn max_f32(&mut self, idx: usize, value: f32)

check max then update

source

pub fn max_f64(&mut self, idx: usize, value: f64)

check max then update

source

pub fn max_i128(&mut self, idx: usize, value: i128)

check max then update

source

pub fn min_bool(&mut self, idx: usize, value: bool)

check max then update

source

pub fn min_u8(&mut self, idx: usize, value: u8)

check max then update

source

pub fn min_u16(&mut self, idx: usize, value: u16)

check max then update

source

pub fn min_u32(&mut self, idx: usize, value: u32)

check max then update

source

pub fn min_u64(&mut self, idx: usize, value: u64)

check max then update

source

pub fn min_i8(&mut self, idx: usize, value: i8)

check max then update

source

pub fn min_i16(&mut self, idx: usize, value: i16)

check max then update

source

pub fn min_i32(&mut self, idx: usize, value: i32)

check max then update

source

pub fn min_i64(&mut self, idx: usize, value: i64)

check max then update

source

pub fn min_f32(&mut self, idx: usize, value: f32)

check max then update

source

pub fn min_f64(&mut self, idx: usize, value: f64)

check max then update

source

pub fn min_i128(&mut self, idx: usize, value: i128)

check max then update

source

pub fn bitand_bool(&mut self, idx: usize, value: bool)

check bit_and then update

source

pub fn bitand_u8(&mut self, idx: usize, value: u8)

check bit_and then update

source

pub fn bitand_u16(&mut self, idx: usize, value: u16)

check bit_and then update

source

pub fn bitand_u32(&mut self, idx: usize, value: u32)

check bit_and then update

source

pub fn bitand_u64(&mut self, idx: usize, value: u64)

check bit_and then update

source

pub fn bitand_i8(&mut self, idx: usize, value: i8)

check bit_and then update

source

pub fn bitand_i16(&mut self, idx: usize, value: i16)

check bit_and then update

source

pub fn bitand_i32(&mut self, idx: usize, value: i32)

check bit_and then update

source

pub fn bitand_i64(&mut self, idx: usize, value: i64)

check bit_and then update

source

pub fn bitor_bool(&mut self, idx: usize, value: bool)

check bit_and then update

source

pub fn bitor_u8(&mut self, idx: usize, value: u8)

check bit_and then update

source

pub fn bitor_u16(&mut self, idx: usize, value: u16)

check bit_and then update

source

pub fn bitor_u32(&mut self, idx: usize, value: u32)

check bit_and then update

source

pub fn bitor_u64(&mut self, idx: usize, value: u64)

check bit_and then update

source

pub fn bitor_i8(&mut self, idx: usize, value: i8)

check bit_and then update

source

pub fn bitor_i16(&mut self, idx: usize, value: i16)

check bit_and then update

source

pub fn bitor_i32(&mut self, idx: usize, value: i32)

check bit_and then update

source

pub fn bitor_i64(&mut self, idx: usize, value: i64)

check bit_and then update

source

pub fn bitxor_u8(&mut self, idx: usize, value: u8)

check bit_and then update

source

pub fn bitxor_u16(&mut self, idx: usize, value: u16)

check bit_and then update

source

pub fn bitxor_u32(&mut self, idx: usize, value: u32)

check bit_and then update

source

pub fn bitxor_u64(&mut self, idx: usize, value: u64)

check bit_and then update

source

pub fn bitxor_i8(&mut self, idx: usize, value: i8)

check bit_and then update

source

pub fn bitxor_i16(&mut self, idx: usize, value: i16)

check bit_and then update

source

pub fn bitxor_i32(&mut self, idx: usize, value: i32)

check bit_and then update

source

pub fn bitxor_i64(&mut self, idx: usize, value: i64)

check bit_and then update

Trait Implementations§

source§

impl<'a> Debug for RowAccessor<'a>

source§

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

Formats the value using the given formatter. Read more

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§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere 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> Same<T> for T

§

type Output = T

Should always be Self
source§

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

§

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 Twhere U: TryFrom<T>,

§

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<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

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