Class: XQueryEqualityChecker
Defined in: lang-xquery/src/visitors/equality-checker.ts:8
Extends EqualityChecker to compare XQuery-specific plan operators (TreeJoin, ProjectionSize) by structural equality.
Extends
Implements
XQueryPlanVisitor<boolean,EcDescentArgs>
Constructors
Constructor
new XQueryEqualityChecker(
vmap):XQueryEqualityChecker
Defined in: lang-xquery/src/visitors/equality-checker.ts:12
Parameters
| Parameter | Type |
|---|---|
vmap | Record<string, PlanVisitor<boolean, EcDescentArgs>> |
Returns
XQueryEqualityChecker
Overrides
Properties
vmap
protectedvmap:Record<string,PlanVisitor<boolean,EcDescentArgs>>
Defined in: core/dist/visitors/equality-checker.d.ts:20
Per-language visitor map used for recursive descent.
Inherited from
Methods
areEqual()
areEqual(
op1,op2,options?):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:47
if options.renameMap is provided, it will be used to rename the items in the op2 before comparing.
Parameters
| Parameter | Type |
|---|---|
op1 | OpOrId |
op2 | OpOrId |
options? | { ignoreLang?: boolean; renameMap?: RenameMap; } |
options.ignoreLang? | boolean |
options.renameMap? | RenameMap |
Returns
boolean
Inherited from
maybeRename()
protectedmaybeRename(id,renameMap?):ASTIdentifier
Defined in: core/dist/visitors/equality-checker.d.ts:28
Returns id renamed according to renameMap, or id unchanged when the map is
absent or does not contain an entry for id.
Parameters
| Parameter | Type |
|---|---|
id | ASTIdentifier |
renameMap? | RenameMap |
Returns
Inherited from
processArray()
protectedprocessArray(arrA,arrB,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:43
Returns true only when arrA and arrB have the same length and every element
pair compares equal via processItem.
Parameters
| Parameter | Type |
|---|---|
arrA | OpOrId[] |
arrB | OpOrId[] |
args | EcDescentArgs |
Returns
boolean
Inherited from
processItem()
protectedprocessItem(operator,__namedParameters):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:34
Compares operator against other, optionally applying renameMap to identifiers
from other. Handles the special case where one side is a bare identifier and the
other is an identity FnCall(ret1, [id]).
Parameters
| Parameter | Type |
|---|---|
operator | OpOrId |
__namedParameters | { ignoreLang: boolean; other: OpOrId; renameMap?: RenameMap; } |
__namedParameters.ignoreLang | boolean |
__namedParameters.other | OpOrId |
__namedParameters.renameMap? | RenameMap |
Returns
boolean
Inherited from
visitAggregate()
visitAggregate(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:75
Parameters
| Parameter | Type |
|---|---|
a | AggregateCall |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitAggregate
Inherited from
EqualityChecker.visitAggregate
visitBidirectionalRecursion()
visitBidirectionalRecursion(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:81
Parameters
| Parameter | Type |
|---|---|
a | BidirectionalRecursion |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitBidirectionalRecursion
Inherited from
EqualityChecker.visitBidirectionalRecursion
visitCalculation()
visitCalculation(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:58
Parameters
| Parameter | Type |
|---|---|
a | Calculation |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitCalculation
Inherited from
EqualityChecker.visitCalculation
visitCartesianProduct()
visitCartesianProduct(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:60
Parameters
| Parameter | Type |
|---|---|
a | CartesianProduct |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitCartesianProduct
Inherited from
EqualityChecker.visitCartesianProduct
visitConditional()
visitConditional(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:59
Parameters
| Parameter | Type |
|---|---|
a | Conditional |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitConditional
Inherited from
EqualityChecker.visitConditional
visitDifference()
visitDifference(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:72
Parameters
| Parameter | Type |
|---|---|
a | Difference |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitDifference
Inherited from
EqualityChecker.visitDifference
visitDistinct()
visitDistinct(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:73
Parameters
| Parameter | Type |
|---|---|
a | Distinct |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitDistinct
Inherited from
visitFnCall()
visitFnCall(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:56
Parameters
| Parameter | Type |
|---|---|
a | FnCall |
args | EcDescentArgs |
Returns
boolean
Implementation of
Inherited from
visitGroupBy()
visitGroupBy(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:67
Parameters
| Parameter | Type |
|---|---|
a | GroupBy |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitGroupBy
Inherited from
visitIndexedRecursion()
visitIndexedRecursion(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:80
Parameters
| Parameter | Type |
|---|---|
a | IndexedRecursion |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitIndexedRecursion
Inherited from
EqualityChecker.visitIndexedRecursion
visitIndexScan()
visitIndexScan(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:79
Parameters
| Parameter | Type |
|---|---|
a | IndexScan |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitIndexScan
Inherited from
EqualityChecker.visitIndexScan
visitIntersection()
visitIntersection(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:71
Parameters
| Parameter | Type |
|---|---|
a | Intersection |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitIntersection
Inherited from
EqualityChecker.visitIntersection
visitItemFnSource()
visitItemFnSource(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:76
Parameters
| Parameter | Type |
|---|---|
a | ItemFnSource |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitItemFnSource
Inherited from
EqualityChecker.visitItemFnSource
visitItemSource()
visitItemSource(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:55
Parameters
| Parameter | Type |
|---|---|
a | ItemSource |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitItemSource
Inherited from
EqualityChecker.visitItemSource
visitJoin()
visitJoin(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:61
Parameters
| Parameter | Type |
|---|---|
a | Join |
args | EcDescentArgs |
Returns
boolean
Implementation of
Inherited from
visitLimit()
visitLimit(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:68
Parameters
| Parameter | Type |
|---|---|
a | Limit |
args | EcDescentArgs |
Returns
boolean
Implementation of
Inherited from
visitLiteral()
visitLiteral(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:57
Parameters
| Parameter | Type |
|---|---|
a | Literal |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitLiteral
Inherited from
visitMapFromItem()
visitMapFromItem(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:64
Parameters
| Parameter | Type |
|---|---|
a | MapFromItem |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitMapFromItem
Inherited from
EqualityChecker.visitMapFromItem
visitMapToItem()
visitMapToItem(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:63
Parameters
| Parameter | Type |
|---|---|
a | MapToItem |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitMapToItem
Inherited from
EqualityChecker.visitMapToItem
visitNullSource()
visitNullSource(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:74
Parameters
| Parameter | Type |
|---|---|
a | NullSource |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitNullSource
Inherited from
EqualityChecker.visitNullSource
visitOrderBy()
visitOrderBy(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:66
Parameters
| Parameter | Type |
|---|---|
a | OrderBy |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitOrderBy
Inherited from
visitProjection()
visitProjection(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:52
Parameters
| Parameter | Type |
|---|---|
a | Projection |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitProjection
Inherited from
EqualityChecker.visitProjection
visitProjectionConcat()
visitProjectionConcat(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:62
Parameters
| Parameter | Type |
|---|---|
a | ProjectionConcat |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitProjectionConcat
Inherited from
EqualityChecker.visitProjectionConcat
visitProjectionIndex()
visitProjectionIndex(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:65
Parameters
| Parameter | Type |
|---|---|
a | ProjectionIndex |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitProjectionIndex
Inherited from
EqualityChecker.visitProjectionIndex
visitProjectionSize()
visitProjectionSize(
a,args):boolean
Defined in: lang-xquery/src/visitors/equality-checker.ts:22
Parameters
| Parameter | Type |
|---|---|
a | ProjectionSize |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitProjectionSize
visitQuantifier()
visitQuantifier(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:78
Parameters
| Parameter | Type |
|---|---|
a | Quantifier |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitQuantifier
Inherited from
EqualityChecker.visitQuantifier
visitRecursion()
visitRecursion(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:51
Parameters
| Parameter | Type |
|---|---|
a | Recursion |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitRecursion
Inherited from
EqualityChecker.visitRecursion
visitSelection()
visitSelection(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:53
Parameters
| Parameter | Type |
|---|---|
a | Selection |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitSelection
Inherited from
EqualityChecker.visitSelection
visitSetOp()
protectedvisitSetOp(a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:69
Parameters
| Parameter | Type |
|---|---|
a | SetOperator |
args | EcDescentArgs |
Returns
boolean
Inherited from
visitTreeJoin()
visitTreeJoin(
a,args):boolean
Defined in: lang-xquery/src/visitors/equality-checker.ts:15
Parameters
| Parameter | Type |
|---|---|
a | TreeJoin |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitTreeJoin
visitTupleFnSource()
visitTupleFnSource(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:77
Parameters
| Parameter | Type |
|---|---|
a | TupleFnSource |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitTupleFnSource
Inherited from
EqualityChecker.visitTupleFnSource
visitTupleSource()
visitTupleSource(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:54
Parameters
| Parameter | Type |
|---|---|
a | TupleSource |
args | EcDescentArgs |
Returns
boolean
Implementation of
XQueryPlanVisitor.visitTupleSource
Inherited from
EqualityChecker.visitTupleSource
visitUnion()
visitUnion(
a,args):boolean
Defined in: core/dist/visitors/equality-checker.d.ts:70
Parameters
| Parameter | Type |
|---|---|
a | Union |
args | EcDescentArgs |
Returns
boolean