pub enum DataKind {
Bool,
UInt8,
UInt16,
UInt32,
UInt64,
Int64,
Float64,
String,
Binary,
FixedBinary(usize),
TimestampMicros,
List(Box<DataKind>),
}Expand description
Data types that can be represented in any columnar format.
These map to:
- Arrow:
DataType::* - DuckDB:
LogicalType::* - Parquet: Physical + Logical types
Variants§
Bool
Boolean (true/false)
UInt8
Unsigned 8-bit integer
UInt16
Unsigned 16-bit integer
UInt32
Unsigned 32-bit integer (also used for IPv4 addresses)
UInt64
Unsigned 64-bit integer
Int64
Signed 64-bit integer
Float64
64-bit floating point
String
UTF-8 string
Binary
Variable-length binary data
FixedBinary(usize)
Fixed-size binary data (e.g., MAC address = 6, IPv6 = 16)
TimestampMicros
Timestamp with microsecond precision (UTC)
List(Box<DataKind>)
Variable-length list of elements of the same type
Implementations§
Trait Implementations§
impl Eq for DataKind
impl StructuralPartialEq for DataKind
Auto Trait Implementations§
impl Freeze for DataKind
impl RefUnwindSafe for DataKind
impl Send for DataKind
impl Sync for DataKind
impl Unpin for DataKind
impl UnwindSafe for DataKind
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more