pub enum ColumnVector {
Bool {
values: Arc<[u8]>,
validity: Validity,
},
Int64 {
values: Arc<[i64]>,
validity: Validity,
},
Float64 {
values: Arc<[f64]>,
validity: Validity,
},
Utf8 {
values: Arc<[String]>,
validity: Validity,
},
NodeId(Arc<[u64]>),
RelationalRowLocator(Arc<[RelationalRowLocator]>),
Dynamic(Arc<[Value]>),
}Variants§
Bool
Int64
Float64
Utf8
NodeId(Arc<[u64]>)
RelationalRowLocator(Arc<[RelationalRowLocator]>)
Dynamic(Arc<[Value]>)
Implementations§
Source§impl ColumnVector
impl ColumnVector
pub fn boolean(values: Vec<bool>, validity: Validity) -> Result<Self>
pub fn boolean_bytes(values: Vec<u8>, validity: Validity) -> Result<Self>
pub fn int64(values: Vec<i64>, validity: Validity) -> Result<Self>
pub fn float64(values: Vec<f64>, validity: Validity) -> Result<Self>
pub fn node_ids(values: Vec<u64>) -> Self
pub fn relational_row_locators(values: Vec<RelationalRowLocator>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn column_type(&self) -> ColumnType
pub fn is_valid(&self, row: usize) -> bool
pub fn value_ref(&self, row: usize) -> Option<ValueRef<'_>>
pub fn value(&self, row: usize) -> Option<Value>
pub fn relational_row_locator( &self, row: usize, ) -> Option<&RelationalRowLocator>
pub fn estimated_memory_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for ColumnVector
impl Clone for ColumnVector
Source§impl Debug for ColumnVector
impl Debug for ColumnVector
Source§impl PartialEq for ColumnVector
impl PartialEq for ColumnVector
impl StructuralPartialEq for ColumnVector
Auto Trait Implementations§
impl Freeze for ColumnVector
impl RefUnwindSafe for ColumnVector
impl Send for ColumnVector
impl Sync for ColumnVector
impl Unpin for ColumnVector
impl UnsafeUnpin for ColumnVector
impl UnwindSafe for ColumnVector
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
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