Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-arrow/src/compute/mod.rs
6939 views
1
//! contains a wide range of compute operations (e.g.
2
//! [`arithmetics`], [`aggregate`],
3
//! [`filter`], [`comparison`], and [`sort`])
4
//!
5
//! This module's general design is
6
//! that each operator has two interfaces, a statically-typed version and a dynamically-typed
7
//! version.
8
//! The statically-typed version expects concrete arrays (such as [`PrimitiveArray`](crate::array::PrimitiveArray));
9
//! the dynamically-typed version expects `&dyn Array` and errors if the type is not
10
//! supported.
11
//! Some dynamically-typed operators have an auxiliary function, `can_*`, that returns
12
//! true if the operator can be applied to the particular `DataType`.
13
14
#[cfg(feature = "compute_aggregate")]
15
#[cfg_attr(docsrs, doc(cfg(feature = "compute_aggregate")))]
16
pub mod aggregate;
17
pub mod arity;
18
pub mod arity_assign;
19
#[cfg(feature = "compute_bitwise")]
20
#[cfg_attr(docsrs, doc(cfg(feature = "compute_bitwise")))]
21
pub mod bitwise;
22
#[cfg(feature = "compute_boolean")]
23
#[cfg_attr(docsrs, doc(cfg(feature = "compute_boolean")))]
24
pub mod boolean;
25
#[cfg(feature = "compute_boolean_kleene")]
26
#[cfg_attr(docsrs, doc(cfg(feature = "compute_boolean_kleene")))]
27
pub mod boolean_kleene;
28
pub mod concatenate;
29
#[cfg(feature = "dtype-decimal")]
30
pub mod decimal;
31
#[cfg(feature = "compute_temporal")]
32
#[cfg_attr(docsrs, doc(cfg(feature = "compute_temporal")))]
33
pub mod temporal;
34
pub mod utils;
35
36