Skip to main content

Crate uqa_storage

Crate uqa_storage 

Source
Expand description

Persistent and in-memory backing stores for UQA: documents, inverted index, vector indexes (IVF), B-tree, in-memory spatial scan, block-max, and the SQLite catalog.

Re-exports§

pub use backend::PersistentStorageBackend;
pub use backend::PersistentStorageIdentity;
pub use backend::PersistentStorageProvider;
pub use backend::PersistentStorageSession;
pub use backend::SQLiteStorageBackend;
pub use backend::SQLiteStorageProvider;
pub use backend::StorageBackendError;
pub use backend::StorageBackendResult;
pub use backend::StorageSavepointId;
pub use block_max_index::BlockMaxIndex;
pub use block_max_index::BlockMaxScorer;
pub use block_max_index::DEFAULT_BLOCK_SIZE;
pub use btree_index::BTreeIndex;
pub use catalog::sequence_value_reservation;
pub use catalog::CatalogCacheRevisions;
pub use catalog::CatalogFacade;
pub use catalog::CatalogIndexRow;
pub use catalog::ColumnStatsInput;
pub use catalog::ColumnStatsRow;
pub use catalog::EdgeRow;
pub use catalog::ForeignTableRow;
pub use catalog::GraphEntityFilter;
pub use catalog::GraphEntityKind;
pub use catalog::GraphSnapshot;
pub use catalog::GraphVertexRow;
pub use catalog::RelationIdentity;
pub use catalog::RelationKind;
pub use catalog::SchemaAclEntry;
pub use catalog::SchemaPrivileges;
pub use catalog::SchemaRow;
pub use catalog::SequenceAclEntry;
pub use catalog::SequenceOptions;
pub use catalog::SequenceOwner;
pub use catalog::SequenceOwnerDependency;
pub use catalog::SequencePrivileges;
pub use catalog::SequenceReservationResult;
pub use catalog::SequenceRow;
pub use catalog::SequenceValuePosition;
pub use catalog::SequenceValueReservation;
pub use catalog::TableAclEntry;
pub use catalog::TablePrivileges;
pub use catalog::TableSchema;
pub use catalog::VectorFieldSchema;
pub use catalog::ViewRow;
pub use catalog::MAX_GRAPH_ID_PAGE;
pub use clustered_postings::MaterializedPostingCursor;
pub use clustered_postings::PostingCursor;
pub use clustered_postings::PostingScore;
pub use clustered_postings::POSTING_CLUSTER_DOCS;
pub use document_store::DocumentMetadata;
pub use document_store::DocumentStore;
pub use document_store::MemoryDocumentStore;
pub use document_store::SharedDocumentRow;
pub use document_store::StoredDocument;
pub use hnsw_index::HNSWIndex;
pub use index_abc::Index;
pub use index_manager::BTreeIndexHandle;
pub use index_manager::IndexManager;
pub use index_types::IndexDef;
pub use index_types::IndexType;
pub use inverted_index::AnalyzerPhase;
pub use inverted_index::InvertedIndex;
pub use inverted_index::MemoryInvertedIndex;
pub use ivf_index::IVFIndex;
pub use ivf_index::IVFState;
pub use key_value::KeyValueBatch;
pub use key_value::KeyValueCatalog;
pub use key_value::KeyValueDocumentStore;
pub use key_value::KeyValueInvertedIndex;
pub use key_value::KeyValueStorageBackend;
pub use key_value::KeyValueStore;
pub use key_value::KeyValueVectorIndex;
pub use key_value::MemoryKeyValueStore;
pub use spatial_index::haversine_distance;
pub use spatial_index::MemorySpatialIndex;
pub use spatial_index::SpatialIndex;
pub use sqlite::detect_database_file_format;
pub use sqlite::read_authenticated_anchor;
pub use sqlite::Catalog;
pub use sqlite::DatabaseFileFormat;
pub use sqlite::ManagedConnection;
pub use sqlite::SQLiteBTreeIndexStore;
pub use sqlite::SQLiteCompressedContainerAnchor;
pub use sqlite::SQLiteCompressionCodec;
pub use sqlite::SQLiteCompressionOptions;
pub use sqlite::SQLiteDocumentStore;
pub use sqlite::SQLiteError;
pub use sqlite::SQLiteHNSWIndex;
pub use sqlite::SQLiteIVFIndex;
pub use sqlite::SQLiteInvertedIndex;
pub use sqlite::SQLiteVectorIndex;
pub use transaction::InMemoryTransaction;
pub use transaction::SQLiteTransaction;
pub use transaction::Snapshotable;
pub use transaction::TransactionError;
pub use transaction::TxResult;
pub use vector_index::cosine_similarity;
pub use vector_index::HNSWIndexParams;
pub use vector_index::IVFIndexParams;
pub use vector_index::MemoryVectorIndex;
pub use vector_index::VectorIndex;
pub use vector_index::VectorIndexOpenMode;
pub use vector_index::VectorIndexSpec;

Modules§

backend
Persistent storage backend factory.
block_max_index
Per-block maximum score index for Block-Max WAND optimisation.
btree_index
In-memory B-tree index for predicate scans.
catalog
Backend-neutral persistent catalog facade.
clustered_postings
Backend-neutral clustered posting codec and lazy score cursor.
document_store
Document storage abstraction.
hnsw_index
Hierarchical Navigable Small World vector index.
index_abc
Common contract every index implementation honours.
index_manager
Index manager: registry that creates / drops / looks up indexes.
index_types
Index type definitions for the storage layer.
inverted_index
Inverted index abstraction and an in-memory implementation.
ivf_index
In-memory inverted-file vector index.
key_value
Backend-neutral Key/Value storage.
spatial_index
In-memory spatial index over geographic points.
sqlite
SQLite-backed persistence: connection, catalog, document store, inverted index, vector index.
transaction
Explicit user transactions with savepoint stacks.
vector_index
Vector index abstraction and an in-memory brute-force fallback.

Enums§

ValueIndexKey