Skip to main content

Crate linkrs_query

Crate linkrs_query 

Source

Re-exports§

pub use executor::base::ExecutionResult;
pub use pipeline::QueryPipelineManager;
pub use context::QueryContext;
pub use context::QueryContextBuilder;
pub use context::QueryRequestContext;
pub use query_manager::QueryInfo;
pub use query_manager::QueryManager;
pub use query_manager::QueryProgress;
pub use query_manager::QueryProgressCallback;
pub use query_manager::QueryStatus;
pub use extensions::BinderExtension;
pub use extensions::BinderExtensionContext;
pub use extensions::ExtensionRegistry;
pub use extensions::MapperExtension;
pub use extensions::ParserExtension;
pub use extensions::PlannerExtension;
pub use dml_events::classify_dml;
pub use dml_events::DmlOp;
pub use dml_events::DmlStatementCallback;
pub use dml_events::DmlStatementEvent;
pub use session_events::SessionEvent;
pub use session_events::SessionEventCallback;
pub use optimizer::OptimizerEngine;

Modules§

attached
Attached-database catalog.
binder
Binder module: AST → BoundStatement conversion with catalog resolution.
cache
Query Cache Module
context
Query execution context module
cte
Common table expression (CTE) name mangling.
dml_events
Statement-level DML classification and notification.
executor
experimental_pipeline_extensions
Unstable alias for the experimental pipeline-extension surface.
extensions
Experimental query-pipeline extension points.
metadata
Metadata Module
optimizer
Query Optimization Module
parser
Query parser module for graph database
pipeline
planning
Planner module for generating execution plans from AST Contains the Planner trait, ExecutionPlan structure, and various specific planners
query_core
Core Query Module
query_manager
Query Manager
session_events
storage

Macros§

define_all_plan_nodes
Generate metadata methods for PlanNodeEnum from a single macro table.
define_binary_geography_fn
Define a geospatial binary function
define_binary_input_node
Define the macro for the dual-input plan node
define_binary_numeric_fn
Define a binary numeric operation function
define_binary_string_bool_fn
Define a binary string comparison function
define_data_op_info
Macro to define a data operation info struct with common fields
define_datetime_extractor
Define a function for extracting date and time fields
define_edges_node
Macro to define an edges operation node with common methods
define_enum_as_methods
Generate a macro for the as_xxx method for PlanNodeEnum
define_enum_as_mut_methods
Generate a macro for the as_xxx_mut method for PlanNodeEnum
define_enum_is_methods
Generate a macro for the is_xxx method for PlanNodeEnum
define_function_enum
Macro for defining an enumeration of built-in functions
define_join_node
Define the macro for connecting nodes
define_logical_binary_input_node
define_logical_join_node
define_logical_plan_node
define_logical_plan_node_with_deps
define_plan_node
Macro for defining plan nodes (ZeroInputNode and MultipleInputNode variants)
define_plan_node_with_deps
Define a macro for single-input planning nodes.
define_rewrite_elimination_rule
Define the elimination rules.
define_rewrite_merge_rule
Define merge rules
define_rewrite_pushdown_rule
Define the push-down rule.
define_rewrite_rule
Define the basic rules for rule rewriting.
define_rewrite_rule_registry
Definition of rules: Registry
define_simple_rewrite_elimination_rule
Define a simple elimination rule (which only deletes the current node).
define_single_op_node
Macro to define a single-target operation node (like UpdateNode)
define_stmt_helpers
Generate span() and category() for Stmt from a single exhaustive table.
define_typed_rewrite_rule
Define rules that match node types.
define_unary_float_fn
Define a single-parameter numerical function that returns a Float value.
define_unary_numeric_fn
Define a single-parameter integer/float function (while preserving the data type)
define_unary_string_fn
Define a single-parameter string function
define_vertices_node
Macro to define a vertices operation node with common methods
impl_default_estimate_memory
Macro to implement a default estimate_memory for plan nodes This macro estimates the base struct size and col_names vector
ng_ok_or_err
Error handling macro variants
ng_return_if_error
Error handling macros

Structs§

DataSet
Simple dataset representation
FusedHit
Fused hit shared by both strategies.
QueryError
Query layer error type
ScoredHit
One ranked hit from a single retrieval path.

Functions§

normalize_vector_hits
Map one vector hit list to fusion keys, dropping hits that do not belong to the requested index.
normalize_vector_point_id
Normalize a vector point ID to its vertex document key for fusion.
rrf_fuse
Fuse ranked lists with reciprocal rank fusion.
weighted_fuse
Fuse one vector list with one fulltext list by weighted sum.

Type Aliases§

DBResult
Harmonized result types