#[non_exhaustive]pub enum AttrColumn {
Null {
rows: usize,
},
Bool {
valid: Vec<bool>,
values: Vec<bool>,
},
I64 {
valid: Vec<bool>,
values: Vec<i64>,
},
F64 {
valid: Vec<bool>,
values: Vec<f64>,
},
Text {
valid: Vec<bool>,
bytes: Vec<u8>,
offsets: Vec<u32>,
},
I64Set {
valid: Vec<bool>,
offsets: Vec<u32>,
items_valid: Vec<bool>,
values: Vec<i64>,
},
F64Set {
valid: Vec<bool>,
offsets: Vec<u32>,
items_valid: Vec<bool>,
values: Vec<f64>,
},
TextSet {
valid: Vec<bool>,
offsets: Vec<u32>,
items_valid: Vec<bool>,
bytes: Vec<u8>,
byte_offsets: Vec<u32>,
},
}Expand description
One attribute column of a DocColumns batch.
valid[row] false means the field is null on that row, and whatever
the value buffers hold there is ignored. A set’s offsets (one more than
the rows) cut its items into rows, and items_valid says which items are
not null. Numbers keep their kind, so 5 stays an integer and 5.0 a
float, as serde_json writes them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
A column that is null on every one of rows rows (Arrow’s Null
type).
Bool
Booleans.
I64
Integers.
F64
Floating-point numbers. A valid value must be finite.
Text
Strings, as one UTF-8 buffer cut by offsets.
Fields
I64Set
Sets of integers.
Fields
F64Set
Sets of floating-point numbers. A valid item must be finite.
Fields
TextSet
Sets of strings.
Trait Implementations§
Source§impl Clone for AttrColumn
impl Clone for AttrColumn
Source§impl Debug for AttrColumn
impl Debug for AttrColumn
Source§impl PartialEq for AttrColumn
impl PartialEq for AttrColumn
impl StructuralPartialEq for AttrColumn
Auto Trait Implementations§
impl Freeze for AttrColumn
impl RefUnwindSafe for AttrColumn
impl Send for AttrColumn
impl Sync for AttrColumn
impl Unpin for AttrColumn
impl UnsafeUnpin for AttrColumn
impl UnwindSafe for AttrColumn
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