Trait lance_arrow::floats::ArrowFloatType
source · pub trait ArrowFloatType: Debug {
type Native: FromPrimitive + FloatToArrayType<ArrowType = Self> + AsPrimitive<f32>;
type ArrayType: FloatArray<Self>;
const FLOAT_TYPE: FloatType;
// Provided method
fn empty_array() -> Self::ArrayType { ... }
}Expand description
Trait for float types used in Arrow Array.
Required Associated Types§
type Native: FromPrimitive + FloatToArrayType<ArrowType = Self> + AsPrimitive<f32>
sourcetype ArrayType: FloatArray<Self>
type ArrayType: FloatArray<Self>
Arrow Float Array Type.
Required Associated Constants§
const FLOAT_TYPE: FloatType
Provided Methods§
sourcefn empty_array() -> Self::ArrayType
fn empty_array() -> Self::ArrayType
Returns empty array of this type.
Object Safety§
This trait is not object safe.