public final class FTExtension extends FTExpr
Constructor and Description |
---|
FTExtension(InputInfo info,
Pragma pragma,
FTExpr expr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FTExpr |
copy(CompileContext cc,
IntObjMap<Var> vm)
Copies an expression.
|
boolean |
equals(Object obj)
This function is e.g.
|
FTNode |
item(QueryContext qc,
InputInfo ii)
This method is called by the sequential full-text evaluation.
|
FTIter |
iter(QueryContext qc)
This method is called by the index-based full-text evaluation.
|
void |
plan(QueryPlan plan)
Creates a query plan.
|
void |
plan(QueryString qs)
Creates a query string.
|
accept, checkUp, compile, count, exprSize, has, inline, inlineable, optimize, usesExclude, value
adoptType, atomValue, checkAllUp, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, ebv, 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, args, atomItem, atomIter, data, data, ddo, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, simplifyFor, typeCheck, uses, vacuous, visitAll
description, toErrorString, toString
public FTNode item(QueryContext qc, InputInfo ii) throws QueryException
FTExpr
item
in class FTExpr
qc
- query contextii
- input info (only required by Seq
instances, which have no input info)QueryException
- query exceptionpublic FTIter iter(QueryContext qc) throws QueryException
FTExpr
iter
in class FTExpr
qc
- query contextQueryException
- query exceptionpublic FTExpr 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 FTExpr
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)
Expr
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 void plan(QueryString qs)
ExprInfo
Copyright © 2005–2023 BaseX Team. All rights reserved.