pub enum SemanticType {
NumericArray {
dtype: NumericDType,
length: Option<usize>,
},
TimeSeries {
timestamp_field: String,
value_fields: SmallVec<[String; 4]>,
interval_ms: Option<u64>,
},
Table {
columns: Box<SmallVec<[ColumnMeta; 16]>>,
row_count: Option<usize>,
},
Graph {
node_type: String,
edge_type: String,
node_count: Option<usize>,
},
Geospatial {
coordinate_system: String,
geometry_type: String,
},
Matrix {
dimensions: SmallVec<[usize; 4]>,
dtype: NumericDType,
},
Generic,
}
Expand description
Semantic type hints that enable automatic optimization
Variants§
NumericArray
Array of homogeneous numeric data (SIMD-friendly)
Fields
§
dtype: NumericDType
Data type of array elements
TimeSeries
Time series data with timestamp and values
Fields
Table
Tabular data (columnar processing friendly)
Fields
§
columns: Box<SmallVec<[ColumnMeta; 16]>>
Column metadata
Graph
Graph/tree structure
Fields
Geospatial
Geospatial data
Fields
Matrix
Image/matrix data
Generic
Generic JSON (no specific optimization)
Implementations§
Source§impl SemanticType
impl SemanticType
Sourcepub fn numeric_dtype(&self) -> Option<NumericDType>
pub fn numeric_dtype(&self) -> Option<NumericDType>
Get the primary numeric data type if applicable
Sourcepub fn is_simd_friendly(&self) -> bool
pub fn is_simd_friendly(&self) -> bool
Check if type is suitable for SIMD processing
Sourcepub fn is_columnar(&self) -> bool
pub fn is_columnar(&self) -> bool
Check if type is suitable for columnar processing
Trait Implementations§
Source§impl Clone for SemanticType
impl Clone for SemanticType
Source§fn clone(&self) -> SemanticType
fn clone(&self) -> SemanticType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SemanticType
impl Debug for SemanticType
Source§impl<'de> Deserialize<'de> for SemanticType
impl<'de> Deserialize<'de> for SemanticType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SemanticType
impl PartialEq for SemanticType
Source§impl Serialize for SemanticType
impl Serialize for SemanticType
impl StructuralPartialEq for SemanticType
Auto Trait Implementations§
impl Freeze for SemanticType
impl RefUnwindSafe for SemanticType
impl Send for SemanticType
impl Sync for SemanticType
impl Unpin for SemanticType
impl UnwindSafe for SemanticType
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