Class: FnCall
Defined in: packages/core/src/plan/operators/item/fn-call.ts:20
A scalar function call whose arguments may be identifiers or subquery operators.
Implements
Constructors
Constructor
new FnCall(
lang,args,impl,pure?):FnCall
Defined in: packages/core/src/plan/operators/item/fn-call.ts:24
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
lang | Lowercase<string> | undefined | PlanOperator.lang |
args | (ASTIdentifier | PlanOpAsArg)[] | undefined | Arguments to the function; each is either an identifier or a subquery wrapped in PlanOpAsArg. |
impl | (...args) => any | undefined | Function implementation. |
pure | boolean | false | Function is pure if it has no side effects and always returns the same output for the same input. This means that () => ({}) is not pure. |
Returns
FnCall
Properties
[CalcIntermediate]
[CalcIntermediate]:
boolean=true
Defined in: packages/core/src/plan/operators/item/fn-call.ts:22
Marks this as a CalcIntermediate sub-operator of a Calculation.
args
args: (
ASTIdentifier|PlanOpAsArg)[]
Defined in: packages/core/src/plan/operators/item/fn-call.ts:28
Arguments to the function; each is either an identifier or a subquery wrapped in PlanOpAsArg.
impl
impl: (...
args) =>any
Defined in: packages/core/src/plan/operators/item/fn-call.ts:30
Function implementation.
Parameters
| Parameter | Type |
|---|---|
...args | any[] |
Returns
any
lang
lang:
Lowercase<string>
Defined in: packages/core/src/plan/operators/item/fn-call.ts:26
PlanOperator.lang
Implementation of
pure
pure:
boolean=false
Defined in: packages/core/src/plan/operators/item/fn-call.ts:35
Function is pure if it has no side effects and always returns the same output for the same input.
This means that () => ({}) is not pure.
Methods
accept()
accept<
Ret,Arg>(visitors,arg?):Ret
Defined in: packages/core/src/plan/operators/item/fn-call.ts:45
PlanOperator.accept
Type Parameters
| Type Parameter |
|---|
Ret |
Arg |
Parameters
| Parameter | Type |
|---|---|
visitors | Record<string, PlanVisitor<Ret, Arg>> |
arg? | Arg |
Returns
Ret
Implementation of
clone()
clone(
meta?):FnCall
Defined in: packages/core/src/plan/operators/item/fn-call.ts:77
Clone this FnCall
Parameters
| Parameter | Type | Description |
|---|---|---|
meta? | ArgMeta[] | provided by cloned Calculation, should be modified in-place to reflect new locations of arguments |
Returns
FnCall
Implementation of
getChildren()
getChildren():
PlanOperator[]
Defined in: packages/core/src/plan/operators/item/fn-call.ts:62
PlanOperator.getChildren
Returns
Implementation of
getDependencies()
getDependencies():
IdSet
Defined in: packages/core/src/plan/operators/item/fn-call.ts:110
PlanOperator.getDependencies
Returns
Implementation of
replaceChild()
replaceChild(
current,replacement):void
Defined in: packages/core/src/plan/operators/item/fn-call.ts:52
PlanOperator.replaceChild
Parameters
| Parameter | Type |
|---|---|
current | PlanOperator |
replacement | PlanOperator |
Returns
void