Expand description
Query Router - Module 5 of Neumann
Parses shell commands, routes to appropriate engine(s), and combines results.
§Command Syntax
§Relational Commands
SELECT <table> [WHERE <condition>]INSERT <table> <col>=<val>, ...UPDATE <table> SET <col>=<val>, ... [WHERE <condition>]DELETE <table> [WHERE <condition>]CREATE TABLE <table> (<col>:<type>, ...)
§Graph Commands
NODE CREATE <label> [<key>=<val>, ...]NODE GET <id>EDGE CREATE <from> -> <to> [<label>]NEIGHBORS <id> [OUT|IN|BOTH]PATH <from> -> <to>
§Vector Commands
EMBED <key> [<val>, ...]SIMILAR <key> [TOP <k>]SIMILAR [<val>, ...] [TOP <k>]
§Unified Commands
FIND <entity> WHERE <condition> SIMILAR TO <key> CONNECTED TO <entity>
Re-exports§
pub use cursor::CursorError;pub use cursor::CursorId;pub use cursor::CursorResultType;pub use cursor::CursorState;pub use cursor_store::CursorStore;pub use cursor_store::CursorStoreConfig;pub use distributed::DistributedQueryConfig;pub use distributed::MergeStrategy;pub use distributed::QueryPlan;pub use distributed::QueryPlanner;pub use distributed::ResultMerger;pub use distributed::ShardId;pub use distributed::ShardResult;
Modules§
- cursor
- Cursor state management for paginated query results.
- cursor_
store - Thread-safe cursor storage with TTL-based expiration.
- cypher
- Cypher query execution for the query router.
- distributed
- Distributed query execution with semantic routing and scatter-gather.
Structs§
- Artifact
Info Result - Artifact info result from blob query.
- Batch
Operation Result - Batch operation result.
- Blob
Stats Result - Blob storage statistics result.
- Centrality
Item - Centrality score for a single node.
- Centrality
Result - Centrality result with algorithm metadata.
- Chain
Block Info - Block info from chain.
- Chain
Codebook Info - Codebook info.
- Chain
Drift Result - Chain drift metrics.
- Chain
History Entry - Entry in chain history.
- Chain
Similar Result - Similar result from chain query.
- Chain
Transition Analysis - Transition analysis result.
- Checkpoint
Info - Checkpoint information for display.
- Community
Item - Community assignment for a single node.
- Community
Result - Community detection result with algorithm metadata.
- Constraint
Info - Constraint information.
- Edge
Result - Edge result from graph query.
- Filtered
Search Config - Configuration for filtered search behavior.
- Node
Result - Node result from graph query.
- Page
Rank Item PageRankscore for a single node.- Page
Rank Result PageRankresult with algorithm metadata.- Paged
Query Result - Result of a paginated query execution.
- Pagination
Options - Options for paginated query execution.
- Pattern
Match Binding - A single match with variable bindings.
- Pattern
Match Result Value - Pattern match result value for serialization.
- Pattern
Match Stats Value - Statistics from pattern matching.
- Query
Router - Query Router that orchestrates queries across engines.
- Similar
Result - Similarity search result.
- Spatial
Result - Result from a spatial range query.
- Unified
Result - Result from unified cross-engine query.
Enums§
- Aggregate
Result Value - Aggregate result value.
- Binding
Value - A binding to a graph element.
- Centrality
Type - Centrality algorithm type.
- Chain
Result - Chain operation result.
- Filter
Condition - Filter condition for filtered similarity search.
- Filter
Strategy - Strategy for filtered search execution.
- Filter
Value - Filter value for comparisons.
- Query
Result - Result of a query execution.
- Router
Error - Error types for query routing.