tyneq / IQueryNode
Interface: IQueryNode
Defined in: src/types/queryplan.ts:41
A node in the query plan tree representing one operator in a pipeline.
Remarks
Nodes form a linked list via source. The head node has source === null and represents the data source.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
operatorName | readonly | string | The operator name as registered with the registry. | src/types/queryplan.ts:43 |
args | readonly | readonly unknown[] | The arguments passed to the operator. Functions render as <fn> in printed output. | src/types/queryplan.ts:46 |
source | readonly | Nullable<QueryPlanNode> | The upstream node, or null for source nodes. | src/types/queryplan.ts:49 |
category | readonly | OperatorCategory | Operator category describing behaviour (`"source" | "streaming" |
sourceKind? | readonly | SourceKind | The backing JavaScript collection type for source nodes. Remarks Only meaningful when category === "source". For all other categories this field is undefined. Use isSourceNode to narrow the type before reading this field. | src/types/queryplan.ts:63 |
Methods
accept()
accept<
T>(visitor):T
Defined in: src/types/queryplan.ts:70
Accepts a visitor and returns its result.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
visitor | QueryPlanVisitor<T> | The visitor to invoke. |
Returns
T