Expand description
Common helpers shared across graph execution plan implementations.
This module provides shared utilities to reduce code duplication across the df_graph module’s execution plan implementations.
Functions§
- append_
edge_ to_ struct - Append a single edge to an edge struct builder.
- append_
edge_ to_ struct_ optional - Append an edge to a struct builder, handling the
Option<Eid>case. - append_
node_ to_ struct - Append a single node to a node struct builder.
- append_
node_ to_ struct_ optional - Append a node to a struct builder, handling the
Option<Vid>case. - arrow_
err - Convert an
ArrowErrorinto aDataFusionError. - build_
edge_ list_ field - Build edge list field for schema with given step variable name.
- build_
path_ struct_ array - Build a path struct array from nodes and relationships list arrays.
- build_
path_ struct_ field - Build path struct field for schema with given path variable name.
- calculate_
score - Convert a raw distance value into a normalised similarity score.
- collect_
all_ partitions - Collect all record batches from all partitions of an execution plan.
- column_
as_ vid_ array - Extract a
UInt64Arrayof vertex/edge IDs from an Arrow column. - compute_
plan_ properties - Compute standard plan properties for graph operators.
- cv_
array_ to_ large_ list - Convert a
LargeBinaryArrayof CypherValue-encoded arrays into aLargeListArray. - edge_
struct_ fields - Build the standard edge struct fields for path structures.
- encode_
props_ to_ cv - Encode a properties HashMap to CypherValue bytes for LargeBinary columns.
- execute_
subplan - Execute a logical plan using a fresh HybridPhysicalPlanner with the given params.
- execute_
subplan_ with_ outer_ vars - Like
execute_subplan, but with outer entity variable names for nested EXISTS. - extend_
schema_ with_ path - Extend an input schema with a path struct field.
- extract_
row_ params - Extract a single row from a RecordBatch as a HashMap of column name → Value.
- extract_
vids_ from_ cypher_ value_ column - Extract VIDs from a column of CypherValue-encoded Node values.
- infer_
logical_ plan_ schema - Infer the output schema of a logical plan using UniSchema property metadata.
- labels_
data_ type - Return the Arrow
DataTypefor_labelscolumns:List<Utf8>. - large_
list_ of_ cv_ to_ cv_ array - Re-encode a
LargeListArrayof CypherValue elements into aLargeBinaryArrayof CypherValue arrays. - merged_
edge_ schema_ props - Merge edge property metadata across multiple edge types.
- new_
edge_ list_ builder - Create a
ListBuilder<StructBuilder>for building edge list arrays. - new_
node_ list_ builder - Create a
ListBuilder<StructBuilder>for building node list arrays. - node_
struct_ fields - Build the standard node struct fields for path structures.
- typed_
large_ list_ to_ cv_ array - Convert a typed
LargeListArrayto aLargeBinaryArrayof CypherValue arrays.