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
//! Public API facade (docs/SPEC.md §2.8): the fluent DataFrame API and SQL entry
//! points over the runtime — [`OxideSession`] for sessions (embedded or
//! cluster), [`OxideFrame`] for queries, and the `l2_distance` /
//! `cosine_distance` SQL UDFs registered on every session.
//!
//! ```no_run
//! use oxidelake_api::prelude::*;
//!
//! # async fn demo() -> Result<(), EngineError> {
//! let session = OxideSession::local()?;
//! session.register_parquet("t", "data/").await?;
//! let top = session
//! .table("t")
//! .await?
//! .filter(col("k").gt_eq(lit(2)))?
//! .vector_distance("emb", &[0.0; 8], DistanceMetric::L2, "d")?
//! .sort(vec![col("d").sort(true, false)])?
//! .limit(10)?
//! .collect()
//! .await?;
//! # let _ = top; Ok(())
//! # }
//! ```
//!
//! Dependency direction: depends on `oxidelake-runtime` (and `oxidelake-core`).
pub use ;
pub use DistanceMetric;
pub use ;
pub use ;
/// Commonly used imports: the session and frame types plus the DataFusion
/// expression builders the verbs take.