Float64Column

Struct Float64Column 

Source
pub struct Float64Column { /* private fields */ }
Expand description

Structure representing a Float64 column

Implementations§

Source§

impl Float64Column

Source

pub fn new(data: Vec<f64>) -> Self

Create a new Float64Column

Source

pub fn with_name(data: Vec<f64>, name: impl Into<String>) -> Self

Create a Float64Column with a name

Source

pub fn with_nulls(data: Vec<f64>, nulls: Vec<bool>) -> Self

Create a Float64Column with NULL values

Source

pub fn set_name(&mut self, name: impl Into<String>)

Set the name

Source

pub fn get_name(&self) -> Option<&str>

Get the name

Source

pub fn data(&self) -> &[f64]

Get a reference to the underlying data (for testing and demonstration)

Source

pub fn get(&self, index: usize) -> Result<Option<f64>>

Get data at the specified index

Source

pub fn sum(&self) -> f64

Calculate the sum of data (excluding NULL values)

Source

pub fn mean(&self) -> Option<f64>

Calculate the mean (average) of data (excluding NULL values)

Source

pub fn min(&self) -> Option<f64>

Calculate the minimum value of data (excluding NULL values)

Source

pub fn max(&self) -> Option<f64>

Calculate the maximum value of data (excluding NULL values)

Source

pub fn map<F>(&self, f: F) -> Self
where F: Fn(f64) -> f64,

Create a new column by applying a mapping function

Source

pub fn filter<F>(&self, predicate: F) -> Self
where F: Fn(Option<f64>) -> bool,

Create a new column based on filtering conditions

Trait Implementations§

Source§

impl Clone for Float64Column

Source§

fn clone(&self) -> Float64Column

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ColumnTrait for Float64Column

Source§

fn len(&self) -> usize

Returns the length of the column
Source§

fn column_type(&self) -> ColumnType

Returns the type of the column
Source§

fn name(&self) -> Option<&str>

Returns the name of the column
Source§

fn clone_column(&self) -> Column

Clones the column
Source§

fn as_any(&self) -> &dyn Any

Retrieves the column as a type Any
Source§

fn is_empty(&self) -> bool

Returns whether the column is empty
Source§

impl Debug for Float64Column

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Float64Column> for Column

Source§

fn from(col: Float64Column) -> Self

Converts to this type from the input type.
Source§

impl SIMDFloat64Ops for Float64Column

Source§

fn simd_add(&self, other: &Float64Column) -> Result<Float64Column>

Element-wise addition with another Float64Column using SIMD
Source§

fn simd_subtract(&self, other: &Float64Column) -> Result<Float64Column>

Element-wise subtraction with another Float64Column using SIMD
Source§

fn simd_multiply(&self, other: &Float64Column) -> Result<Float64Column>

Element-wise multiplication with another Float64Column using SIMD
Source§

fn simd_divide(&self, other: &Float64Column) -> Result<Float64Column>

Element-wise division with another Float64Column using SIMD
Source§

fn simd_add_scalar(&self, scalar: f64) -> Result<Float64Column>

Scalar addition using SIMD
Source§

fn simd_multiply_scalar(&self, scalar: f64) -> Result<Float64Column>

Scalar multiplication using SIMD
Source§

fn simd_abs(&self) -> Result<Float64Column>

Absolute value using SIMD
Source§

fn simd_sqrt(&self) -> Result<Float64Column>

Square root using SIMD
Source§

fn simd_compare( &self, other: &Float64Column, op: ComparisonOp, ) -> Result<Vec<bool>>

Element-wise comparison using SIMD
Source§

fn simd_compare_scalar( &self, scalar: f64, op: ComparisonOp, ) -> Result<Vec<bool>>

Scalar comparison using SIMD

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ColumnCast for T
where T: ColumnTrait,

Source§

fn as_boxed<U>(&self) -> Option<&U>
where U: 'static,

Casts the column as a boxed type
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T