-
Notifications
You must be signed in to change notification settings - Fork 150
Expand file tree
/
Copy pathlib.rs
More file actions
82 lines (75 loc) · 2.2 KB
/
lib.rs
File metadata and controls
82 lines (75 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors
#![cfg_attr(vortex_nightly, feature(portable_simd))]
//! Vortex crate containing core logic for encoding and memory representation of [arrays](ArrayRef).
//!
//! At the heart of Vortex are [arrays](ArrayRef).
//!
//! Arrays are typed views of memory buffers that hold [scalars](vortex_scalar::Scalar). These
//! buffers can be held in a number of physical encodings to perform lightweight compression that
//! exploits the particular data distribution of the array's values.
//!
//! Every data type recognized by Vortex also has a canonical physical encoding format, which
//! arrays can be [canonicalized](Canonical) into for ease of access in compute functions.
use std::sync::LazyLock;
pub use array::*;
pub use array_future::*;
pub use canonical::*;
pub use columnar::*;
pub use context::*;
pub use executor::*;
pub use hash::*;
pub use mask_future::*;
pub use metadata::*;
use vortex_session::VortexSession;
use crate::session::ArraySession;
pub mod accessor;
#[doc(hidden)]
pub mod aliases;
mod array;
mod array_future;
pub mod arrays;
pub mod arrow;
pub mod buffer;
pub mod builders;
pub mod builtins;
mod canonical;
pub(crate) mod canonical_to_vector;
mod columnar;
pub mod compute;
mod context;
pub mod display;
mod executor;
pub mod expr;
mod expression;
mod hash;
pub mod iter;
pub mod kernel;
pub mod mask;
mod mask_future;
pub mod matcher;
mod metadata;
pub mod normalize;
pub mod optimizer;
mod partial_ord;
pub mod patches;
pub mod search_sorted;
pub mod serde;
pub mod session;
pub mod stats;
pub mod stream;
#[cfg(any(test, feature = "_test-harness"))]
pub mod test_harness;
pub mod validity;
pub mod variants;
pub mod vectors;
pub mod vtable;
pub mod flatbuffers {
//! Re-exported autogenerated code from the core Vortex flatbuffer definitions.
pub use vortex_flatbuffers::array::*;
}
// TODO(ngates): canonicalize doesn't currently take a session, therefore we cannot invoke execute
// from the new array encodings to support back-compat for legacy encodings. So we hold a session
// here...
pub static LEGACY_SESSION: LazyLock<VortexSession> =
LazyLock::new(|| VortexSession::empty().with::<ArraySession>());