Class: ProjectionIndex
Defined in: packages/core/src/plan/operators/tuple/projection.ts:182
Appends or moves a positional index column to the end of the schema, enabling index-based access to rows in the stream.
Extends
Constructors
Constructor
new ProjectionIndex(
lang,indexCol,source):ProjectionIndex
Defined in: packages/core/src/plan/operators/tuple/projection.ts:183
Parameters
| Parameter | Type | Description |
|---|---|---|
lang | Lowercase<string> | - |
indexCol | ASTIdentifier | The attribute identifier used as the row-index column. |
source | PlanTupleOperator | Tuple operator providing the input rows. |
Returns
ProjectionIndex
Overrides
Properties
indexCol
indexCol:
ASTIdentifier
Defined in: packages/core/src/plan/operators/tuple/projection.ts:186
The attribute identifier used as the row-index column.
lang
lang:
Lowercase<string>
Defined in: packages/core/src/plan/visitor.ts:42
PlanOperator.lang
Inherited from
parent?
optionalparent?:PlanOperator
Defined in: packages/core/src/plan/visitor.ts:44
PlanOperator.parent
Inherited from
schema
schema:
ASTIdentifier[]
Defined in: packages/core/src/plan/visitor.ts:38
Ordered list of attribute identifiers produced by this operator.
Inherited from
schemaSet
schemaSet:
IdSet
Defined in: packages/core/src/plan/visitor.ts:40
Trie-backed set of the same paths as schema; used for O(k) membership tests.
Inherited from
source
source:
PlanTupleOperator
Defined in: packages/core/src/plan/operators/tuple/projection.ts:188
Tuple operator providing the input rows.
Methods
accept()
accept<
Ret,Arg>(visitors,arg?):Ret
Defined in: packages/core/src/plan/operators/tuple/projection.ts:201
PlanOperator.accept
Type Parameters
| Type Parameter |
|---|
Ret |
Arg |
Parameters
| Parameter | Type |
|---|---|
visitors | Record<string, PlanVisitor<Ret, Arg>> |
arg? | Arg |
Returns
Ret
Overrides
addToSchema()
addToSchema(
item):void
Defined in: packages/core/src/plan/visitor.ts:57
will preserve object references
Parameters
| Parameter | Type |
|---|---|
item | IdSet | ASTIdentifier | ASTIdentifier[] |
Returns
void
Inherited from
clearSchema()
clearSchema():
void
Defined in: packages/core/src/plan/visitor.ts:102
will preserve object references
Returns
void
Inherited from
clone()
clone():
ProjectionIndex
Defined in: packages/core/src/plan/operators/tuple/projection.ts:225
PlanOperator.clone
Returns
ProjectionIndex
Overrides
getChildren()
getChildren():
PlanOperator[]
Defined in: packages/core/src/plan/operators/tuple/projection.ts:221
PlanOperator.getChildren
Returns
Overrides
getDependencies()
getDependencies():
IdSet
Defined in: packages/core/src/plan/visitor.ts:113
PlanOperator.getDependencies
Returns
Inherited from
PlanTupleOperator.getDependencies
removeFromSchema()
removeFromSchema(
item):boolean
Defined in: packages/core/src/plan/visitor.ts:80
will preserve object references
Parameters
| Parameter | Type |
|---|---|
item | IdSet | ASTIdentifier | ASTIdentifier[] |
Returns
boolean
Inherited from
PlanTupleOperator.removeFromSchema
replaceChild()
replaceChild(
current,replacement):void
Defined in: packages/core/src/plan/operators/tuple/projection.ts:208
PlanOperator.replaceChild
Parameters
| Parameter | Type |
|---|---|
current | PlanTupleOperator |
replacement | PlanTupleOperator |
Returns
void