Expand description
Common infrastructure for DataFusion mutation operators (CREATE, SET, REMOVE, DELETE).
Provides:
MutationContext: Shared context for mutation operators containing executor, writer, etc.batches_to_rows: Convert RecordBatches to row-based HashMaps (batch→row direction).rows_to_batches: Convert row-based HashMaps back to RecordBatches (row→batch direction).MutationExec: Eager-barrier RecordBatchStream that collects all input, applies mutations via Writer, and yields output batches.
Structs§
- Mutation
Context - Shared context for mutation operators.
- Mutation
Exec - Unified DataFusion
ExecutionPlanfor all Cypher mutation clauses (CREATE, SET, REMOVE, DELETE).
Enums§
- Mutation
Kind - The kind of mutation to apply per row.
Functions§
- batches_
to_ rows - Convert RecordBatches to row-based HashMaps for mutation processing.
- execute_
mutation_ stream - Execute a mutation stream: collect all input batches, apply mutations, yield output.
- extended_
schema_ for_ new_ vars - Compute an extended output schema that includes columns for newly created variables.
- new_
create_ exec - Create a new
MutationExecconfigured for a CREATE clause. - new_
merge_ exec - Create a new
MutationExecconfigured for a MERGE clause. - pattern_
variable_ names - Extract variable names introduced by a CREATE/MERGE pattern.
- rows_
to_ batches - Convert row-based HashMaps back to RecordBatches.