#[non_exhaustive]pub enum PhysicalType {
Show 19 variants
Bool,
Int8,
Int16,
Int32,
Int64,
Int128,
UInt8,
UInt16,
UInt32,
UInt64,
UInt128,
Float32,
Float64,
Interval,
Varlen,
List,
Array,
Struct,
Empty,
}Expand description
How a value is actually laid out in a vector.
The planner picks operators off this rather than off the logical type, which is why DATE and
INTEGER share an implementation of everything that does not care what the number means.
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.
Bool
One byte per value, zero or one.
Int8
8 bit signed.
Int16
16 bit signed.
Int32
32 bit signed.
Int64
64 bit signed.
Int128
128 bit signed.
UInt8
8 bit unsigned.
UInt16
16 bit unsigned.
UInt32
32 bit unsigned.
UInt64
64 bit unsigned.
UInt128
128 bit unsigned.
Float32
IEEE 754 binary32.
Float64
IEEE 754 binary64.
Interval
The months, days and microseconds triple.
Varlen
The 16 byte string representation from spec/07-execution.md section 7.1.
List
Offsets plus one child column.
Array
A fixed stride into one child column.
Struct
Named child columns, one per field.
Empty
No storage. Only the validity mask says anything.
Trait Implementations§
Source§impl Clone for PhysicalType
impl Clone for PhysicalType
Source§fn clone(&self) -> PhysicalType
fn clone(&self) -> PhysicalType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhysicalType
Source§impl Debug for PhysicalType
impl Debug for PhysicalType
impl Eq for PhysicalType
Source§impl Hash for PhysicalType
impl Hash for PhysicalType
Source§impl PartialEq for PhysicalType
impl PartialEq for PhysicalType
impl StructuralPartialEq for PhysicalType
Auto Trait Implementations§
impl Freeze for PhysicalType
impl RefUnwindSafe for PhysicalType
impl Send for PhysicalType
impl Sync for PhysicalType
impl Unpin for PhysicalType
impl UnsafeUnpin for PhysicalType
impl UnwindSafe for PhysicalType
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