pub enum ColumnType
Integer,
Long,
Float,
Double,
String,
Bytes,
Boolean,
Int8,
Int16,
Timestamp,
Array,
Date,
DateTime,
Time,
Decimal,
Char1,
Char2,
Char4,
Char8,
Char16,
Char32,
Char64,
Char128,
Char256,
Ipv4,
Json,
Ulong,
Uuid,
Wkt,
Vector,
Wkb,
Column types including subtypes determined by properties
Variants
Integer
Long
Float
Double
String
Bytes
Boolean
Int8
Int16
Timestamp
Array
Date
DateTime
Time
Decimal
Char1
Char2
Char4
Char8
Char16
Char32
Char64
Char128
Char256
Ipv4
Json
Ulong
Uuid
Wkt
Vector
Wkb
Implementations
impl ColumnType
The property that makes a column of this sub-type, where that one property alone does: boolean, timestamp, char16, decimal (18,4), wkt and so on. None for a base type, and for an array or a vector, whose property names its element type or dimensions.
pub fn base_type(&self) -> ColumnBaseType
Get the base type for this column type
pub fn from_avro_and_properties(avro_type: &str, properties: &[String]) -> Self
Resolves a column’s type from its Avro type and properties: the base type from the Avro type, overridden by the first sub-type property in a fixed order of precedence (wkt giving WKT on a string column and WKB on a bytes one), and failing those by the first property starting array, vector or decimal.
Trait Implementations
impl Clone for ColumnType
fn clone(&self) -> ColumnType
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ColumnType
impl Debug for ColumnType
impl Eq for ColumnType
impl Hash for ColumnType
impl PartialEq for ColumnType
fn eq(&self, other: &ColumnType) -> bool
self and other values to be equal, and is used by ==.