Skip to main content

uqa_core/
lib.rs

1//
2// Unified Query Algebra
3//
4// Copyright (c) 2023-2026 Cognica, Inc.
5//
6
7//! Document supports, finite-support relations, posting storage, ranked views,
8//! and shared value types for UQA.
9//!
10//! See `docs/plans/0001-uqa-engine-implementation-plan.md` Section 2.1 for the
11//! algebraic invariants this crate must preserve.
12
13pub mod agtype;
14pub mod cancel;
15pub mod doc_set;
16mod float_text;
17pub mod json;
18pub mod memory;
19pub mod notifications;
20pub mod ordering;
21pub mod posting_list;
22pub mod predicate;
23pub mod ranked_view;
24pub mod relation;
25mod relation_identity;
26pub mod types;
27pub mod vector_execution;
28
29pub use cancel::{CancellationToken, QueryCancelled, SQLSTATE_QUERY_CANCELED};
30pub use doc_set::DocSet;
31pub use float_text::{format_float_pg, format_float_pg_with_control};
32pub use posting_list::{GeneralizedPostingList, PostingList};
33pub use predicate::Predicate;
34pub use ranked_view::RankedView;
35pub use relation::{LogSemiring, Relation, RelationEntry, Semiring};
36pub use relation_identity::RelationIdentity;
37pub use types::{
38    jsonb_equality_key, jsonb_equality_key_with_control, write_jsonb_comparison_key,
39    write_jsonb_equality_key, ArrayAssignmentError, ArrayTraversalError, ArrayValue,
40    BudgetedArrayElements, ControlledArrayElements, DecimalValue, DiskANNIndexStats,
41    DiskANNQueryStats, DocId, Edge, EdgeId, FieldName, GeneralizedPayload, GeneralizedPostingEntry,
42    IndexStats, JsonValueDecoder, JsonbKeyError, LegacyVectorKind, LegacyVectorValue, PathExpr,
43    PathSegment, Payload, PostingEntry, TemporalValue, TokenOccurrence, TokenOccurrenceError,
44    TokenOffsets, Value, ValueRetentionError, VectorGeneration, VectorPopulationStats,
45    VectorQueryRoute, VectorReadStats, Vertex, VertexId,
46};
47
48mod scored_entry;
49pub use scored_entry::ScoredEntry;
50
51pub mod catalog_acl;
52pub mod catalog_identity;
53pub mod catalog_index;
54pub mod catalog_role;
55pub mod catalog_schema;
56pub mod catalog_sequence;
57
58pub mod retrieval;
59pub mod rpq;