[−][src]Trait arrow::datatypes::ArrowPrimitiveType
Trait indicating a primitive fixed-width type (bool, ints and floats).
Associated Types
type Native: ArrowNativeType
Corresponding Rust native type for the primitive type.
Required methods
fn get_data_type() -> DataType
Returns the corresponding Arrow data type of this primitive type.
fn get_bit_width() -> usize
Returns the bit width of this primitive type.
fn default_value() -> Self::Native
Returns a default value of this primitive type.
This is useful for aggregate array ops like sum()
, mean()
.
Implementors
impl ArrowPrimitiveType for BooleanType
[src]
impl ArrowPrimitiveType for BooleanType
type Native = bool
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for Float32Type
[src]
impl ArrowPrimitiveType for Float32Type
type Native = f32
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for Float64Type
[src]
impl ArrowPrimitiveType for Float64Type
type Native = f64
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for Int16Type
[src]
impl ArrowPrimitiveType for Int16Type
type Native = i16
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for Int32Type
[src]
impl ArrowPrimitiveType for Int32Type
type Native = i32
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for Int64Type
[src]
impl ArrowPrimitiveType for Int64Type
type Native = i64
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for Int8Type
[src]
impl ArrowPrimitiveType for Int8Type
type Native = i8
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for UInt16Type
[src]
impl ArrowPrimitiveType for UInt16Type
type Native = u16
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for UInt32Type
[src]
impl ArrowPrimitiveType for UInt32Type
type Native = u32
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for UInt64Type
[src]
impl ArrowPrimitiveType for UInt64Type
type Native = u64
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |
impl ArrowPrimitiveType for UInt8Type
[src]
impl ArrowPrimitiveType for UInt8Type
type Native = u8
fn get_data_type() -> DataType | [src] |
fn get_bit_width() -> usize | [src] |
fn default_value() -> Self::Native | [src] |