pub enum ColumnType {
Primitive {
ptype: PType,
nullable: bool,
col_id: u16,
},
DictRef {
dict_id: u16,
id_width: IdWidth,
nullable: bool,
col_id: u16,
},
Struct(StructSchema),
ShreddedMap {
nullable: bool,
presence_col: Option<u16>,
overflow_col: Option<u16>,
entries: Vec<ShreddedMapEntry>,
},
List {
nullable: bool,
offsets_col: u16,
elem_type: Box<ColumnType>,
},
Dynamic {
nullable: bool,
col_id: u16,
},
}Expand description
The 6 orthogonal column primitives in COI Schema v1.0.
Variants§
Primitive
DictRef
Struct(StructSchema)
ShreddedMap
Fields
§
entries: Vec<ShreddedMapEntry>List
Dynamic
Implementations§
Trait Implementations§
Source§impl Clone for ColumnType
impl Clone for ColumnType
Source§impl Debug for ColumnType
impl Debug for ColumnType
impl Eq for ColumnType
Source§impl PartialEq for ColumnType
impl PartialEq for ColumnType
impl StructuralPartialEq for ColumnType
Auto Trait Implementations§
impl Forget for ColumnType
impl Freeze for ColumnTypewhere
*const u8 is !null: Freeze,
PhantomData<StructField>: Freeze,
PhantomData<DictGroup>: Freeze,
PhantomData<ShreddedMapEntry>: Freeze,
*const ColumnType is !null: Freeze,
PhantomData<ColumnType>: Freeze,
impl Move for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnsafeUnpin for ColumnTypewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<StructField>: UnsafeUnpin,
PhantomData<DictGroup>: UnsafeUnpin,
PhantomData<ShreddedMapEntry>: UnsafeUnpin,
*const ColumnType is !null: UnsafeUnpin,
PhantomData<ColumnType>: UnsafeUnpin,
impl UnwindSafe for ColumnType
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