public final class Union extends Arr
Constructor and Description |
---|
Union(InputInfo info,
Expr... exprs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Expr |
copy(CompileContext cc,
IntObjMap<Var> vm)
Copies an expression.
|
Data |
data()
Returns the data reference bound to this expression.
|
boolean |
ddo()
Indicates if this expression returns nodes in document order without duplicates.
|
boolean |
equals(Object obj)
This function is e.g.
|
Iter |
iter(QueryContext qc)
Evaluates the expression and returns an iterator on the resulting items.
|
Expr |
optimize(CompileContext cc)
Optimizes an already compiled expression without recompiling its sub-expressions.
|
void |
plan(QueryPlan plan)
Creates a query plan.
|
void |
plan(QueryString qs)
Creates a query string.
|
Value |
value(QueryContext qc)
Evaluates the expression and returns the resulting value.
|
accept, allAreValues, args, checkUp, compile, copyAll, count, exprSize, flatten, has, inline, inline, inlineable, mayBePositional, simplifyAll
adoptType, atomValue, checkAllUp, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, ebv, item, refineType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toFloat, toFunc, toItem, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumberOrNull, toQNm, toQNm, toToken, toToken, toTokenOrNull, toZeroToken
arg, atomItem, atomIter, data, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, simplifyFor, typeCheck, uses, vacuous, visitAll
description, toErrorString, toString
public Expr copy(CompileContext cc, IntObjMap<Var> vm)
Expr
VarRef.inline(org.basex.query.InlineContext)
, FuncItem.inline(org.basex.query.expr.Expr[], org.basex.query.CompileContext)
,
Closure.inline(org.basex.query.InlineContext)
and StaticFunc.inline(org.basex.query.expr.Expr[], org.basex.query.CompileContext)
.copy
in class Expr
cc
- compilation contextvm
- mapping from old variable IDs to new variable copies.
Required by Closure.copy(org.basex.query.CompileContext, org.basex.util.hash.IntObjMap<org.basex.query.var.Var>)
and VarRef.copy(org.basex.query.CompileContext, org.basex.util.hash.IntObjMap<org.basex.query.var.Var>)
public boolean equals(Object obj)
Arr
If.optimize(CompileContext)
, Switch.optimize(CompileContext)
,
Typeswitch.optimize(CompileContext)
, in order to discard identical expressions.
CmpR.mergeEbv(Expr, boolean, CompileContext)
or
CmpSR.mergeEbv(Expr, boolean, CompileContext)
,
in order to merge expressions with identical input.
CmpG.optimize(CompileContext)
or CmpV.optimize(CompileContext)
,
in order to pre-evaluate equality tests.
CmpG.optimize(CompileContext)
or
Pos.get(Expr, CmpV.OpV, InputInfo, CompileContext)
,
in order to compare the start and end value.
PathCache
, in order to find identical root values at runtime.
public final Expr optimize(CompileContext cc) throws QueryException
Expr
optimize
in class Expr
cc
- compilation contextQueryException
- query exceptionpublic final Iter iter(QueryContext qc) throws QueryException
Expr
iter
in class ParseExpr
qc
- query contextQueryException
- query exceptionpublic final Value value(QueryContext qc) throws QueryException
Expr
Expr.item(QueryContext, InputInfo)
must be implemented
instead.value
in class ParseExpr
qc
- query contextQueryException
- query exceptionpublic final boolean ddo()
Expr
public final void plan(QueryPlan plan)
ExprInfo
public final void plan(QueryString qs)
ExprInfo
Copyright © 2005–2023 BaseX Team. All rights reserved.