pub enum Vector {
Arrow(ArrowVector),
Legacy(ValueVector),
}Variants§
Arrow(ArrowVector)
Legacy(ValueVector)
Implementations§
Source§impl Vector
impl Vector
pub fn as_arrow(&self) -> Option<&ArrowVector>
pub fn as_legacy(&self) -> Option<&ValueVector>
pub fn as_legacy_mut(&mut self) -> Option<&mut ValueVector>
Trait Implementations§
Source§impl From<ArrowVector> for Vector
impl From<ArrowVector> for Vector
Source§fn from(a: ArrowVector) -> Self
fn from(a: ArrowVector) -> Self
Converts to this type from the input type.
Source§impl From<LegacyValueVector> for Vector
impl From<LegacyValueVector> for Vector
Source§fn from(v: ValueVector) -> Self
fn from(v: ValueVector) -> Self
Converts to this type from the input type.
Source§impl VectorAccess for Vector
impl VectorAccess for Vector
fn size(&self) -> usize
fn physical_type(&self) -> PhysicalTypeID
fn is_null(&self, row: usize) -> bool
fn get_i64(&self, row: usize) -> Option<i64>
fn get_i32(&self, row: usize) -> Option<i32>
fn get_f64(&self, row: usize) -> Option<f64>
fn get_f32(&self, row: usize) -> Option<f32>
fn get_bool(&self, row: usize) -> Option<bool>
fn get_value(&self, row: usize) -> Option<Value>
fn get_i64_sel(&self, pos: usize, sel: &SelectionVector) -> Option<i64>
fn get_i32_sel(&self, pos: usize, sel: &SelectionVector) -> Option<i32>
fn get_f64_sel(&self, pos: usize, sel: &SelectionVector) -> Option<f64>
fn get_f32_sel(&self, pos: usize, sel: &SelectionVector) -> Option<f32>
fn get_bool_sel(&self, pos: usize, sel: &SelectionVector) -> Option<bool>
Auto Trait Implementations§
impl !RefUnwindSafe for Vector
impl !UnwindSafe for Vector
impl Freeze for Vector
impl Send for Vector
impl Sync for Vector
impl Unpin for Vector
impl UnsafeUnpin for Vector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more