| Package | Description |
|---|---|
| org.basex.query |
XQuery implementation.
|
| org.basex.query.expr |
XQuery expressions.
|
| org.basex.query.flwor | |
| org.basex.query.ft |
XQuery Full Text expressions.
|
| org.basex.query.func |
XQuery functions.
|
| org.basex.query.item |
XQuery data types.
|
| org.basex.query.item.map | |
| org.basex.query.path |
XQuery path expressions.
|
| org.basex.query.up | |
| org.basex.query.up.expr | |
| org.basex.query.up.primitives | |
| org.basex.query.util |
XQuery utility classes.
|
| Modifier and Type | Field and Description |
|---|---|
QueryContext |
QueryModule.context
Query context.
|
QueryContext |
QueryProcessor.ctx
Expression context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
QueryModule.init(QueryContext ctx,
InputInfo ii)
Constructor.
|
| Constructor and Description |
|---|
QueryParser(java.lang.String q,
QueryContext c)
Constructor.
|
QuerySuggest(java.lang.String q,
QueryContext c,
Data d)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
Context.addText(QueryContext ctx) |
Expr |
Expr.addText(QueryContext ctx)
Optionally adds a text node to an expression for potential index rewriting.
|
boolean |
ParseExpr.checkBln(Expr e,
QueryContext ctx)
Checks if the specified expression yields a boolean.
|
void |
ParseExpr.checkColl(Expr e,
QueryContext ctx)
Checks if the specified collation is supported.
|
void |
ParseExpr.checkCreate(QueryContext ctx)
Checks if the current user has admin permissions.
|
Value |
ParseExpr.checkCtx(QueryContext ctx)
Throws an exception if the context item is not set.
|
double |
ParseExpr.checkDbl(Expr e,
QueryContext ctx)
Checks if the specified expression yields a double.
|
byte[] |
ParseExpr.checkEStr(Expr e,
QueryContext ctx)
Checks if the specified expression yields a string or empty sequence.
|
IO |
ParseExpr.checkIO(Expr e,
QueryContext ctx)
Checks if an expression yields a valid and existing
IO instance. |
Item |
ParseExpr.checkItem(Expr e,
QueryContext ctx)
Checks if the specified expression yields a non-empty item.
|
long |
ParseExpr.checkItr(Expr e,
QueryContext ctx)
Checks if the specified expression is an integer.
|
byte[] |
ParseExpr.checkStr(Expr e,
QueryContext ctx)
Checks if the specified expression yields a string.
|
Expr |
ParseExpr.checkUp(Expr e,
QueryContext ctx)
Checks if the specified expressions is no updating expression.
|
void |
ParseExpr.checkUp(QueryContext ctx,
Expr... expr)
Tests if the specified expressions are updating or vacuous.
|
void |
ParseExpr.checkWrite(QueryContext ctx)
Checks if the current user has write permissions.
|
CName |
CName.comp(QueryContext ctx) |
Expr |
Simple.comp(QueryContext ctx) |
Expr |
Switch.comp(QueryContext ctx) |
Expr |
Instance.comp(QueryContext ctx) |
Expr |
Preds.comp(QueryContext ctx) |
Expr |
List.comp(QueryContext ctx) |
Expr |
Logical.comp(QueryContext ctx) |
Expr |
Except.comp(QueryContext ctx) |
Catch |
Catch.comp(QueryContext ctx) |
Expr |
Single.comp(QueryContext ctx) |
Expr |
Context.comp(QueryContext ctx) |
Expr |
Castable.comp(QueryContext ctx) |
Expr |
And.comp(QueryContext ctx) |
abstract Expr |
Expr.comp(QueryContext ctx)
Compiles and optimizes the expression, assigns data types and
cardinalities.
|
Expr |
Union.comp(QueryContext ctx) |
Expr |
InterSect.comp(QueryContext ctx) |
Expr |
Arr.comp(QueryContext ctx) |
Expr |
Try.comp(QueryContext ctx) |
TypeCase |
TypeCase.comp(QueryContext ctx) |
Expr |
Filter.comp(QueryContext ctx) |
Expr |
Arith.comp(QueryContext ctx) |
Expr |
CmpN.comp(QueryContext ctx) |
Expr |
SwitchCase.comp(QueryContext ctx) |
Expr |
Extension.comp(QueryContext ctx) |
Expr |
Range.comp(QueryContext ctx) |
Expr |
Cast.comp(QueryContext ctx) |
Expr |
LitMap.comp(QueryContext ctx) |
CElem |
CElem.comp(QueryContext ctx) |
Expr |
CmpV.comp(QueryContext ctx) |
Expr |
Quantifier.comp(QueryContext ctx) |
Expr |
Unary.comp(QueryContext ctx) |
Expr |
If.comp(QueryContext ctx) |
Expr |
VarRef.comp(QueryContext ctx) |
Expr |
Or.comp(QueryContext ctx) |
Expr |
TypeSwitch.comp(QueryContext ctx) |
Expr |
Treat.comp(QueryContext ctx) |
Expr |
CmpG.comp(QueryContext ctx) |
Expr |
Filter.comp2(QueryContext ctx)
Compiles the filter expression, excluding the root node.
|
Expr |
Expr.compEbv(QueryContext ctx)
This method is called at compile time by expressions that perform
effective boolean value tests (e.g.
|
Expr |
CmpV.compEbv(QueryContext ctx) |
Expr |
CmpG.compEbv(QueryContext ctx) |
abstract Item |
Expr.ebv(QueryContext ctx,
InputInfo ii)
Checks if the iterator can be dissolved into an effective boolean value.
|
Item |
ParseExpr.ebv(QueryContext ctx,
InputInfo ii) |
boolean |
Expr.hasFreeVars(QueryContext ctx)
Checks if this expression has free variables.
|
Item |
Switch.item(QueryContext ctx,
InputInfo ii) |
FAttr |
CAttr.item(QueryContext ctx,
InputInfo ii) |
Bln |
Instance.item(QueryContext ctx,
InputInfo ii) |
FComm |
CComm.item(QueryContext ctx,
InputInfo ii) |
FTxt |
CTxt.item(QueryContext ctx,
InputInfo ii) |
Item |
Context.item(QueryContext ctx,
InputInfo ii) |
Bln |
Castable.item(QueryContext ctx,
InputInfo ii) |
Bln |
And.item(QueryContext ctx,
InputInfo ii) |
abstract Item |
Expr.item(QueryContext ctx,
InputInfo ii)
Evaluates the expression and returns the resulting item or
a
null reference, if the expression yields an empty sequence. |
FPI |
CPI.item(QueryContext ctx,
InputInfo ii) |
FNames |
CNSpace.item(QueryContext ctx,
InputInfo ii) |
Bln |
Pos.item(QueryContext ctx,
InputInfo ii) |
Item |
ParseExpr.item(QueryContext ctx,
InputInfo ii) |
Item |
Arith.item(QueryContext ctx,
InputInfo ii) |
Bln |
CmpN.item(QueryContext ctx,
InputInfo ii) |
abstract ANode |
CFrag.item(QueryContext ctx,
InputInfo ii) |
Item |
Cast.item(QueryContext ctx,
InputInfo ii) |
Item |
LitMap.item(QueryContext ctx,
InputInfo ii) |
Bln |
CmpR.item(QueryContext ctx,
InputInfo ii) |
FDoc |
CDoc.item(QueryContext ctx,
InputInfo ii) |
FElem |
CElem.item(QueryContext ctx,
InputInfo ii) |
Bln |
CmpV.item(QueryContext ctx,
InputInfo ii) |
Bln |
Quantifier.item(QueryContext ctx,
InputInfo ii) |
Item |
Unary.item(QueryContext ctx,
InputInfo ii) |
Item |
If.item(QueryContext ctx,
InputInfo ii) |
Item |
VarRef.item(QueryContext ctx,
InputInfo ii) |
Item |
Or.item(QueryContext ctx,
InputInfo ii) |
Bln |
CmpG.item(QueryContext ctx,
InputInfo ii) |
Iter |
Switch.iter(QueryContext ctx) |
Iter |
List.iter(QueryContext ctx) |
Iter |
Root.iter(QueryContext ctx) |
Iter |
Context.iter(QueryContext ctx) |
abstract Iter |
Expr.iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items.
|
Iter |
RangeAccess.iter(QueryContext ctx) |
Iter |
ParseExpr.iter(QueryContext ctx) |
Iter |
Try.iter(QueryContext ctx) |
Iter |
Filter.iter(QueryContext ctx) |
NodeIter |
IndexAccess.iter(QueryContext ctx) |
Iter |
Extension.iter(QueryContext ctx) |
Iter |
Range.iter(QueryContext ctx) |
Iter |
If.iter(QueryContext ctx) |
Iter |
VarRef.iter(QueryContext ctx) |
Iter |
TypeSwitch.iter(QueryContext ctx) |
Iter |
Treat.iter(QueryContext ctx) |
protected Expr |
ParseExpr.optPre(Expr opt,
QueryContext ctx)
Adds an optimization info for pre-evaluating the specified expression.
|
boolean |
Preds.preds(Item it,
QueryContext ctx)
Checks if the predicates are successful for the specified item.
|
Expr |
ParseExpr.preEval(QueryContext ctx)
Pre-evaluates the specified expression.
|
int |
Catch.prepare(QueryContext ctx)
Prepares the catch construction.
|
boolean |
Pos.skip(QueryContext ctx)
Returns false if no more results can be expected.
|
abstract Item |
Expr.test(QueryContext ctx,
InputInfo ii)
Performs a predicate test and returns the item if test was successful.
|
Item |
ParseExpr.test(QueryContext ctx,
InputInfo ii) |
Value |
Switch.value(QueryContext ctx) |
Value |
List.value(QueryContext ctx) |
Value |
Context.value(QueryContext ctx) |
abstract Value |
Expr.value(QueryContext ctx)
Evaluates the expression and returns the resulting value.
|
Value |
ParseExpr.value(QueryContext ctx) |
Value |
Try.value(QueryContext ctx) |
Value |
Range.value(QueryContext ctx) |
Value |
If.value(QueryContext ctx) |
Value |
VarRef.value(QueryContext ctx) |
Value |
Treat.value(QueryContext ctx) |
| Constructor and Description |
|---|
Catch(InputInfo ii,
QNm[] c,
QueryContext ctx)
Constructor.
|
Constr(InputInfo ii,
QueryContext qc)
Creates the children of the constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
OrderByExpr.comp(QueryContext ctx) |
Expr |
GFLWOR.comp(QueryContext ctx) |
Let |
Let.comp(QueryContext ctx) |
abstract ForLet |
ForLet.comp(QueryContext ctx) |
Expr |
Order.comp(QueryContext ctx) |
For |
For.comp(QueryContext ctx) |
Expr |
Group.comp(QueryContext ctx) |
Expr |
OrderByStable.comp(QueryContext ctx) |
Expr |
FLWR.comp(QueryContext ctx) |
Item |
Group.Spec.item(QueryContext ctx,
InputInfo ii) |
Iter |
GFLWOR.iter(QueryContext ctx) |
Iter |
Let.iter(QueryContext ctx) |
Iter |
Order.iter(QueryContext ctx) |
Iter |
For.iter(QueryContext ctx) |
Iter |
Group.iter(QueryContext ctx) |
Iter |
FLWR.iter(QueryContext ctx) |
Value |
Group.Spec.value(QueryContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
FTExpr |
FTWindow.comp(QueryContext ctx) |
FTExpr |
FTOr.comp(QueryContext ctx) |
Expr |
FTContains.comp(QueryContext ctx) |
FTExpr |
FTNot.comp(QueryContext ctx) |
FTExpr |
FTDistance.comp(QueryContext ctx) |
FTExpr |
FTWeight.comp(QueryContext ctx) |
FTExpr |
FTExpr.comp(QueryContext ctx) |
FTExpr |
FTAnd.comp(QueryContext ctx) |
FTExpr |
FTWords.comp(QueryContext ctx) |
FTExpr |
FTOptions.comp(QueryContext ctx) |
protected boolean |
FTWindow.filter(QueryContext ctx,
FTMatch mtc,
FTLexer lex) |
protected boolean |
FTScope.filter(QueryContext ctx,
FTMatch mtc,
FTLexer lex) |
protected boolean |
FTDistance.filter(QueryContext ctx,
FTMatch mtc,
FTLexer lex) |
protected boolean |
FTContent.filter(QueryContext ctx,
FTMatch mtc,
FTLexer lex) |
protected abstract boolean |
FTFilter.filter(QueryContext ctx,
FTMatch m,
FTLexer ft)
Evaluates the filter expression.
|
protected boolean |
FTOrder.filter(QueryContext ctx,
FTMatch mtc,
FTLexer lex) |
FTNode |
FTExtensionSelection.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTOr.item(QueryContext ctx,
InputInfo ii) |
Bln |
FTContains.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTNot.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTWeight.item(QueryContext ctx,
InputInfo ii) |
abstract FTNode |
FTExpr.item(QueryContext ctx,
InputInfo ii)
This method is called by the sequential full-text evaluation.
|
FTNode |
FTFilter.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTAnd.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTWords.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTOptions.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTMildNot.item(QueryContext ctx,
InputInfo ii) |
FTIter |
FTExtensionSelection.iter(QueryContext ctx) |
FTIter |
FTOr.iter(QueryContext ctx) |
FTIter |
FTNot.iter(QueryContext ctx) |
FTIter |
FTWeight.iter(QueryContext ctx) |
abstract FTIter |
FTExpr.iter(QueryContext ctx)
This method is called by the index-based full-text evaluation.
|
NodeIter |
FTIndexAccess.iter(QueryContext ctx) |
FTIter |
FTFilter.iter(QueryContext ctx) |
FTIter |
FTAnd.iter(QueryContext ctx) |
FTIter |
FTWords.iter(QueryContext ctx) |
FTIter |
FTOptions.iter(QueryContext ctx) |
FTIter |
FTMildNot.iter(QueryContext ctx) |
| Constructor and Description |
|---|
FTWords(InputInfo ii,
Data d,
Item str,
QueryContext ctx)
Constructor for index-based evaluation.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
SeqType.cast(Item it,
boolean cast,
QueryContext ctx,
InputInfo ii,
Expr e)
Tries to cast the given item to this sequence type.
|
Item |
AtomType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
FItem |
MapType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
Item |
NodeType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
FItem |
FuncType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
Item |
Type.cast(Item it,
QueryContext ctx,
InputInfo ii)
Casts the specified item to the XQuery data type.
|
abstract FItem |
FItem.coerceTo(FuncType ft,
QueryContext ctx,
InputInfo ii)
Coerces this function item to the given function type.
|
FItem |
FuncItem.coerceTo(FuncType ft,
QueryContext ctx,
InputInfo ii) |
Value |
Value.comp(QueryContext ctx) |
Item |
Empty.ebv(QueryContext ctx,
InputInfo ii) |
Item |
DBNodeSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
IntSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
RangeSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
Item.ebv(QueryContext ctx,
InputInfo ii) |
Item |
ItemSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
FItem.invItem(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
Item |
FuncItem.invItem(QueryContext ctx,
InputInfo ii,
Value... args) |
Iter |
FItem.invIter(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
Iter |
FuncItem.invIter(QueryContext ctx,
InputInfo ii,
Value... args) |
abstract Value |
FItem.invValue(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
Value |
FuncItem.invValue(QueryContext ctx,
InputInfo ii,
Value... args) |
Item |
Empty.item(QueryContext ctx,
InputInfo ii) |
Item |
Item.item(QueryContext ctx,
InputInfo ii) |
Item |
Seq.item(QueryContext ctx,
InputInfo ii) |
ValueIter |
Value.iter(QueryContext ctx) |
Value |
SeqType.promote(Value val,
QueryContext ctx,
InputInfo ii)
Tries to promote the specified value to this sequence type.
|
Item |
Empty.test(QueryContext ctx,
InputInfo ii) |
Item |
Item.test(QueryContext ctx,
InputInfo ii) |
Item |
Seq.test(QueryContext ctx,
InputInfo ii) |
byte[] |
ANode.uri(byte[] pref,
QueryContext ctx)
Recursively finds the uri for the specified prefix.
|
Value |
Value.value(QueryContext ctx) |
| Constructor and Description |
|---|
QNm(byte[] n,
QueryContext ctx)
Constructor, binding a statically known namespace.
|
| Modifier and Type | Method and Description |
|---|---|
Map |
Map.coerceTo(FuncType ft,
QueryContext ctx,
InputInfo ii) |
Value |
Map.invValue(QueryContext ctx,
InputInfo ii,
Value... args) |
| Modifier and Type | Method and Description |
|---|---|
Expr |
AxisPath.addText(QueryContext ctx) |
boolean |
Test.comp(QueryContext ctx)
Optimizes and compiles the expression.
|
boolean |
NameTest.comp(QueryContext ctx) |
Expr |
AxisStep.comp(QueryContext ctx) |
Expr |
Path.comp(QueryContext ctx) |
protected abstract Expr |
Path.compPath(QueryContext ctx)
Compiles the location path.
|
protected Expr |
AxisPath.compPath(QueryContext ctx) |
protected Expr |
MixedPath.compPath(QueryContext ctx) |
NodeIter |
AxisStep.iter(QueryContext ctx) |
Iter |
AxisPath.iter(QueryContext ctx) |
Iter |
MixedPath.iter(QueryContext ctx) |
java.util.ArrayList<PathNode> |
AxisPath.nodes(QueryContext ctx)
Returns the path nodes that will result from this path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Updates.add(UpdatePrimitive up,
QueryContext ctx)
Adds an update primitive to the current context modifier.
|
DBNode |
Updates.determineDataRef(ANode target,
QueryContext ctx)
Determines the data reference and pre value for an update primitive
which has a fragment as a target node.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
Transform.comp(QueryContext ctx) |
Item |
Insert.item(QueryContext ctx,
InputInfo ii) |
Item |
Replace.item(QueryContext ctx,
InputInfo ii) |
Item |
Delete.item(QueryContext ctx,
InputInfo ii) |
Item |
Rename.item(QueryContext ctx,
InputInfo ii) |
ValueIter |
Transform.iter(QueryContext ctx) |
Value |
Transform.value(QueryContext ctx) |
| Constructor and Description |
|---|
Put(InputInfo i,
int p,
Data d,
Uri u,
QueryContext context)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
QueryContext |
IndexContext.ctx
Query context.
|
| Modifier and Type | Method and Description |
|---|---|
Var |
Var.bind(Expr e,
QueryContext ctx)
Binds the specified expression to the variable.
|
Var |
Var.bind(Value v,
QueryContext ctx)
Binds the specified value to the variable.
|
Var |
Var.comp(QueryContext ctx) |
static Var |
Var.create(QueryContext ctx,
InputInfo ii,
QNm n,
Ann a)
Creates a new variable.
|
static Var |
Var.create(QueryContext ctx,
InputInfo ii,
QNm n,
SeqType t,
Ann a)
Creates a new variable.
|
static Var |
Var.create(QueryContext ctx,
InputInfo ii,
QNm n,
Value v,
Ann a)
Creates a new variable.
|
Item |
Var.item(QueryContext ctx,
InputInfo ii) |
Iter |
Var.iter(QueryContext ctx) |
void |
Var.reset(SeqType t,
QueryContext ctx)
Sets the specified variable type.
|
Value |
Var.value(QueryContext ctx) |
| Constructor and Description |
|---|
IndexContext(QueryContext c,
Data d,
AxisStep s,
boolean i)
Constructor.
|