| Package | Description |
|---|---|
| org.basex.core |
Database core classes.
|
| org.basex.io.serial | |
| 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.iter |
XQuery iterators.
|
| 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.
|
| org.basex.query.util.crypto | |
| org.basex.query.util.format |
XQuery formatter utility classes.
|
| org.basex.query.util.http | |
| org.basex.query.util.json | |
| org.basex.query.util.pkg | |
| org.basex.util.ft |
Full-text specific utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
Command[] |
CommandParser.parse()
Parses the input and returns a command list.
|
Command[] |
CommandParser.parse(boolean s)
Parses the input and returns a command list.
|
Command |
CommandParser.parseSingle()
Parses the input as single command and returns the result.
|
| Modifier and Type | Method and Description |
|---|---|
QueryException |
SerializerException.getCause() |
QueryException |
SerializerException.getCause(InputInfo input)
Returns the query exception.
|
| Constructor and Description |
|---|
SerializerException(QueryException qe)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
QueryException |
QuerySuggest.error(Err err,
java.lang.Object... arg) |
QueryException |
QueryParser.error(Err err,
java.lang.Object... arg)
Throws the specified error.
|
QueryException |
QueryException.info(InputInfo ii)
Sets input info.
|
QueryException |
QueryException.suggest(InputParser qp,
StringList sug)
Sets code suggestions.
|
QueryException |
QueryException.value(Value v)
Sets the error value.
|
QueryException |
QueryError.wrapped()
Getter for the wrapped exception.
|
| Modifier and Type | Method and Description |
|---|---|
void |
QueryResources.addCollection(java.lang.String name,
java.lang.String[] paths)
Adds a collection with the specified paths.
|
void |
QueryResources.addDoc(java.lang.String name,
java.lang.String path)
Adds a document with the specified path.
|
QueryProcessor |
QueryProcessor.bind(java.lang.String name,
java.lang.Object value)
Binds a value to a global variable.
|
QueryProcessor |
QueryProcessor.bind(java.lang.String name,
java.lang.Object value,
java.lang.String type)
Binds a value with the specified data type to a global variable.
|
void |
QueryProcessor.close()
Closes the processor.
|
Value |
QueryResources.collection(java.lang.String input,
InputInfo ii)
Adds a collection instance or returns an existing one.
|
void |
QueryProcessor.compile()
Compiles the query.
|
void |
QueryContext.compile()
Compiles and optimizes the expression.
|
QueryProcessor |
QueryProcessor.context(java.lang.Object value)
Binds a value to the context item.
|
QueryProcessor |
QueryProcessor.context(java.lang.Object value,
java.lang.String type)
Binds a value with the specified data type to the context item,
using the same rules as for
binding variables. |
Data |
QueryResources.data(java.lang.String input,
boolean col,
InputInfo ii)
Creates a new data reference for the specified input, or returns a
reference to an already opened file or database.
|
Data |
QueryResources.data(java.lang.String name,
InputInfo ii)
Opens a new database or returns a reference to an already opened database.
|
QueryException |
QuerySuggest.error(Err err,
java.lang.Object... arg) |
QueryException |
QueryParser.error(Err err,
java.lang.Object... arg)
Throws the specified error.
|
Result |
QueryProcessor.execute()
Evaluates the specified query and returns the result.
|
Serializer |
QueryProcessor.getSerializer(java.io.OutputStream os)
Returns a serializer for the given output stream.
|
Iter |
QueryProcessor.iter()
Returns a result iterator.
|
Iter |
QueryContext.iter()
Returns a result iterator.
|
Iter |
QueryContext.iter(Expr e)
Evaluates the specified expression and returns an iterator.
|
Expr |
QueryParser.module(byte[] u)
Parses the specified query and starts with the "Module" rule.
|
void |
QueryContext.module(java.lang.String qu)
Parses the specified module.
|
QueryProcessor |
QueryProcessor.namespace(java.lang.String prefix,
java.lang.String uri)
Declares a namespace.
|
void |
StaticContext.namespace(java.lang.String prefix,
java.lang.String uri)
Declares a namespace.
|
void |
QueryProcessor.parse()
Parses the query.
|
Expr |
QueryParser.parse(byte[] uri)
Parses the specified query or module.
|
void |
QueryContext.parse(java.lang.String qu)
Parses the specified query.
|
Nodes |
QueryProcessor.queryNodes()
Evaluates the specified query and returns the result nodes.
|
Value |
QueryProcessor.value()
Returns a result value.
|
Value |
QueryContext.value()
Returns the result value.
|
Value |
QueryContext.value(Expr expr)
Evaluates the specified expression and returns an iterator.
|
| Constructor and Description |
|---|
QueryError(QueryException qe)
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 |
|---|---|
Constr |
Constr.add(Expr... expr)
Constructs child and attribute nodes.
|
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.
|
DBNode |
ParseExpr.checkDBNode(Item it)
Checks if the specified expression is a database node.
|
byte[] |
ParseExpr.checkEStr(Expr e,
QueryContext ctx)
Checks if the specified expression yields a string or empty sequence.
|
byte[] |
ParseExpr.checkEStr(Item it)
Checks if the specified item is a string or an 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.
|
long |
ParseExpr.checkItr(Item it)
Checks if the specified item is a number.
|
Map |
ParseExpr.checkMap(Item it)
Assures that the given (non-
null) item is a map. |
ANode |
ParseExpr.checkNode(Item it)
Checks if the specified expression is a node.
|
Item |
ParseExpr.checkNoEmpty(Item it)
Checks if the specified item is no empty sequence.
|
byte[] |
ParseExpr.checkStr(Expr e,
QueryContext ctx)
Checks if the specified expression yields a string.
|
Item |
ParseExpr.checkType(Item it,
Type t)
Checks if the specified expression is an empty sequence; if yes, throws
an exception.
|
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.
|
Expr |
Castable.comp(QueryContext ctx) |
Expr |
LitMap.comp(QueryContext ctx) |
Expr |
Range.comp(QueryContext ctx) |
Expr |
Logical.comp(QueryContext ctx) |
Expr |
If.comp(QueryContext ctx) |
Expr |
Except.comp(QueryContext ctx) |
Expr |
InterSect.comp(QueryContext ctx) |
Expr |
List.comp(QueryContext ctx) |
Expr |
Arr.comp(QueryContext ctx) |
Expr |
Or.comp(QueryContext ctx) |
abstract Expr |
Expr.comp(QueryContext ctx)
Compiles and optimizes the expression, assigns data types and
cardinalities.
|
Catch |
Catch.comp(QueryContext ctx) |
Expr |
CmpG.comp(QueryContext ctx) |
CElem |
CElem.comp(QueryContext ctx) |
Expr |
SwitchCase.comp(QueryContext ctx) |
Expr |
Unary.comp(QueryContext ctx) |
Expr |
Preds.comp(QueryContext ctx) |
Expr |
Instance.comp(QueryContext ctx) |
Expr |
CmpV.comp(QueryContext ctx) |
Expr |
Treat.comp(QueryContext ctx) |
Expr |
Try.comp(QueryContext ctx) |
Expr |
Quantifier.comp(QueryContext ctx) |
Expr |
Arith.comp(QueryContext ctx) |
Expr |
And.comp(QueryContext ctx) |
Expr |
VarRef.comp(QueryContext ctx) |
Expr |
Cast.comp(QueryContext ctx) |
Expr |
CmpN.comp(QueryContext ctx) |
Expr |
Union.comp(QueryContext ctx) |
Expr |
TypeSwitch.comp(QueryContext ctx) |
Expr |
Filter.comp(QueryContext ctx) |
Expr |
Single.comp(QueryContext ctx) |
Expr |
Extension.comp(QueryContext ctx) |
CName |
CName.comp(QueryContext ctx) |
Expr |
Switch.comp(QueryContext ctx) |
TypeCase |
TypeCase.comp(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) |
abstract Item |
Calc.ev(InputInfo ii,
Item a,
Item b)
Performs the calculation.
|
abstract boolean |
CmpV.OpV.eval(InputInfo ii,
Item a,
Item b)
Evaluates the expression.
|
protected NodeCache |
Except.eval(Iter[] iter) |
protected NodeCache |
InterSect.eval(Iter[] iter) |
protected NodeCache |
Union.eval(Iter[] iter) |
static Expr |
Pos.get(CmpV.OpV cmp,
Expr a,
Expr o,
InputInfo ii)
Returns an instance of this class, if possible, and the input expression
otherwise.
|
boolean |
Or.indexAccessible(IndexContext ic) |
boolean |
Expr.indexAccessible(IndexContext ic)
Checks if an expression can be rewritten to an index access.
|
boolean |
CmpG.indexAccessible(IndexContext ic) |
boolean |
And.indexAccessible(IndexContext ic) |
Expr |
Arr.indexEquivalent(IndexContext ic) |
Expr |
Or.indexEquivalent(IndexContext ic) |
Expr |
Expr.indexEquivalent(IndexContext ic)
Returns an equivalent expression which accesses an index structure.
|
Expr |
And.indexEquivalent(IndexContext ic) |
Item |
LitMap.item(QueryContext ctx,
InputInfo ii) |
FTxt |
CTxt.item(QueryContext ctx,
InputInfo ii) |
Item |
If.item(QueryContext ctx,
InputInfo ii) |
Item |
Or.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. |
Bln |
CmpG.item(QueryContext ctx,
InputInfo ii) |
FElem |
CElem.item(QueryContext ctx,
InputInfo ii) |
Item |
Unary.item(QueryContext ctx,
InputInfo ii) |
Bln |
Instance.item(QueryContext ctx,
InputInfo ii) |
Bln |
CmpV.item(QueryContext ctx,
InputInfo ii) |
Bln |
Quantifier.item(QueryContext ctx,
InputInfo ii) |
Item |
Arith.item(QueryContext ctx,
InputInfo ii) |
FComm |
CComm.item(QueryContext ctx,
InputInfo ii) |
Bln |
And.item(QueryContext ctx,
InputInfo ii) |
Item |
Context.item(QueryContext ctx,
InputInfo ii) |
FPI |
CPI.item(QueryContext ctx,
InputInfo ii) |
Item |
VarRef.item(QueryContext ctx,
InputInfo ii) |
Bln |
Pos.item(QueryContext ctx,
InputInfo ii) |
Item |
Cast.item(QueryContext ctx,
InputInfo ii) |
FNames |
CNSpace.item(QueryContext ctx,
InputInfo ii) |
Bln |
CmpN.item(QueryContext ctx,
InputInfo ii) |
Bln |
CmpR.item(QueryContext ctx,
InputInfo ii) |
FDoc |
CDoc.item(QueryContext ctx,
InputInfo ii) |
abstract ANode |
CFrag.item(QueryContext ctx,
InputInfo ii) |
FAttr |
CAttr.item(QueryContext ctx,
InputInfo ii) |
Item |
Switch.item(QueryContext ctx,
InputInfo ii) |
Item |
ParseExpr.item(QueryContext ctx,
InputInfo ii) |
NodeIter |
IndexAccess.iter(QueryContext ctx) |
Iter |
Range.iter(QueryContext ctx) |
Iter |
If.iter(QueryContext ctx) |
abstract Iter |
Expr.iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items.
|
Iter |
Root.iter(QueryContext ctx) |
Iter |
Treat.iter(QueryContext ctx) |
Iter |
Try.iter(QueryContext ctx) |
Iter |
Context.iter(QueryContext ctx) |
Iter |
VarRef.iter(QueryContext ctx) |
Iter |
TypeSwitch.iter(QueryContext ctx) |
Iter |
Filter.iter(QueryContext ctx) |
Iter |
Extension.iter(QueryContext ctx) |
Iter |
Switch.iter(QueryContext ctx) |
Iter |
ParseExpr.iter(QueryContext ctx) |
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.
|
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 |
Range.value(QueryContext ctx) |
Value |
If.value(QueryContext ctx) |
Value |
List.value(QueryContext ctx) |
abstract Value |
Expr.value(QueryContext ctx)
Evaluates the expression and returns the resulting value.
|
Value |
Treat.value(QueryContext ctx) |
Value |
Try.value(QueryContext ctx) |
Value |
Context.value(QueryContext ctx) |
Value |
VarRef.value(QueryContext ctx) |
Value |
Switch.value(QueryContext ctx) |
Value |
ParseExpr.value(QueryContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
Expr |
OrderByExpr.comp(QueryContext ctx) |
Let |
Let.comp(QueryContext ctx) |
Expr |
OrderByStable.comp(QueryContext ctx) |
Expr |
FLWR.comp(QueryContext ctx) |
Expr |
Order.comp(QueryContext ctx) |
Expr |
Group.comp(QueryContext ctx) |
For |
For.comp(QueryContext ctx) |
abstract ForLet |
ForLet.comp(QueryContext ctx) |
Expr |
GFLWOR.comp(QueryContext ctx) |
Item |
Group.Spec.item(QueryContext ctx,
InputInfo ii) |
Iter |
GFLWOR.iter(QueryContext ctx) |
Value |
Group.Spec.value(QueryContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
FTExpr |
FTWords.comp(QueryContext ctx) |
FTExpr |
FTWeight.comp(QueryContext ctx) |
FTExpr |
FTOptions.comp(QueryContext ctx) |
FTExpr |
FTDistance.comp(QueryContext ctx) |
Expr |
FTContains.comp(QueryContext ctx) |
FTExpr |
FTNot.comp(QueryContext ctx) |
FTExpr |
FTOr.comp(QueryContext ctx) |
FTExpr |
FTWindow.comp(QueryContext ctx) |
FTExpr |
FTAnd.comp(QueryContext ctx) |
FTExpr |
FTExpr.comp(QueryContext ctx) |
protected abstract boolean |
FTFilter.filter(QueryContext ctx,
FTMatch m,
FTLexer ft)
Evaluates the filter expression.
|
protected boolean |
FTDistance.filter(QueryContext ctx,
FTMatch mtc,
FTLexer lex) |
protected boolean |
FTWindow.filter(QueryContext ctx,
FTMatch mtc,
FTLexer lex) |
boolean |
FTFilter.indexAccessible(IndexContext ic) |
boolean |
FTContains.indexAccessible(IndexContext ic) |
boolean |
FTNot.indexAccessible(IndexContext ic) |
boolean |
FTOr.indexAccessible(IndexContext ic) |
boolean |
FTAnd.indexAccessible(IndexContext ic) |
boolean |
FTMildNot.indexAccessible(IndexContext ic) |
Expr |
FTContains.indexEquivalent(IndexContext ic) |
FTExpr |
FTExpr.indexEquivalent(IndexContext ic) |
FTNode |
FTWords.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTWeight.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTFilter.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTExtensionSelection.item(QueryContext ctx,
InputInfo ii) |
Bln |
FTContains.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTNot.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTOr.item(QueryContext ctx,
InputInfo ii) |
FTNode |
FTAnd.item(QueryContext ctx,
InputInfo ii) |
abstract FTNode |
FTExpr.item(QueryContext ctx,
InputInfo ii)
This method is called by the sequential full-text evaluation.
|
FTNode |
FTMildNot.item(QueryContext ctx,
InputInfo ii) |
FTIter |
FTFilter.iter(QueryContext ctx) |
FTIter |
FTExtensionSelection.iter(QueryContext ctx) |
FTIter |
FTNot.iter(QueryContext ctx) |
FTIter |
FTOr.iter(QueryContext ctx) |
FTIter |
FTAnd.iter(QueryContext ctx) |
NodeIter |
FTIndexAccess.iter(QueryContext ctx) |
abstract FTIter |
FTExpr.iter(QueryContext ctx)
This method is called by the index-based full-text evaluation.
|
FTIter |
FTMildNot.iter(QueryContext ctx) |
| Constructor and Description |
|---|
FTMildNot(InputInfo ii,
FTExpr e1,
FTExpr e2)
Constructor.
|
FTWildcard(byte[] query,
InputInfo ii)
Parse and construct a new wild card expression.
|
FTWords(InputInfo ii,
Data d,
Item str,
QueryContext ctx)
Constructor for index-based evaluation.
|
| Modifier and Type | Method and Description |
|---|---|
int |
UserFuncs.add(UserFunc fun,
InputInfo ii)
Adds a local function.
|
static Item |
StandardFunc.atom(Item it,
InputInfo ii)
Atomizes the specified item.
|
void |
UserFuncs.check()
Checks if all functions have been correctly declared, and initializes
all function calls.
|
Expr |
FNAggr.cmp(QueryContext ctx) |
Expr |
FNSeq.cmp(QueryContext ctx) |
Expr |
UserFuncCall.comp(QueryContext ctx) |
Expr |
UserFunc.comp(QueryContext ctx) |
void |
UserFuncs.comp(QueryContext ctx)
Compiles the functions.
|
Expr |
DynamicFunc.comp(QueryContext ctx) |
Expr |
PartFunc.comp(QueryContext ctx) |
Expr |
StandardFunc.comp(QueryContext ctx) |
Expr |
InlineFunc.comp(QueryContext ctx) |
void |
Functions.error(QNm name,
InputInfo ii)
Throws an error if one of the pre-defined functions is similar to the
specified function name.
|
protected java.lang.Object |
JavaModuleFunc.eval(Value[] args) |
protected java.lang.Object |
JavaFunc.eval(Value[] args) |
protected abstract java.lang.Object |
JavaMapping.eval(Value[] args)
Returns the result of the evaluated Java function.
|
void |
UserFuncs.funError(QNm name,
InputInfo ii)
Finds similar function names and throws an error message.
|
StandardFunc |
Functions.get(byte[] name,
byte[] uri,
Expr[] args,
QueryContext ctx,
InputInfo ii)
Returns the specified function.
|
static TypedFunc |
Functions.get(QNm name,
Expr[] args,
boolean dyn,
QueryContext ctx,
InputInfo ii)
Returns an instance of the specified function, or
null. |
static FItem |
Functions.get(QNm name,
long arity,
boolean dyn,
QueryContext ctx,
InputInfo ii)
Returns the specified function literal.
|
Item |
FNFile.item(QueryContext ctx,
InputInfo ii) |
Item |
FNSql.item(QueryContext ctx,
InputInfo ii) |
Item |
UserFunc.item(QueryContext ctx,
InputInfo ii) |
Item |
FNStr.item(QueryContext ctx,
InputInfo ii) |
Item |
FNRepo.item(QueryContext ctx,
InputInfo ii) |
Item |
FNZip.item(QueryContext ctx,
InputInfo ii) |
Item |
FNHof.item(QueryContext ctx,
InputInfo ii) |
Item |
FNFunc.item(QueryContext ctx,
InputInfo ii) |
Item |
FNUtil.item(QueryContext ctx,
InputInfo ii) |
Item |
FNQName.item(QueryContext ctx,
InputInfo ii) |
Item |
FNInfo.item(QueryContext ctx,
InputInfo ii) |
Item |
FNNum.item(QueryContext ctx,
InputInfo ii) |
Item |
FNMath.item(QueryContext ctx,
InputInfo ii) |
Item |
FNSimple.item(QueryContext ctx,
InputInfo ii) |
Item |
FNFormat.item(QueryContext ctx,
InputInfo ii) |
Item |
DynamicFunc.item(QueryContext ctx,
InputInfo ii) |
Item |
FNAggr.item(QueryContext ctx,
InputInfo ii) |
Item |
FNPat.item(QueryContext ctx,
InputInfo ii) |
Item |
BaseFuncCall.item(QueryContext ctx,
InputInfo ii) |
Item |
FNNode.item(QueryContext ctx,
InputInfo ii) |
Item |
FNMap.item(QueryContext ctx,
InputInfo ii) |
Item |
FNSeq.item(QueryContext ctx,
InputInfo ii) |
Item |
FNContext.item(QueryContext ctx,
InputInfo ii) |
Item |
FNFt.item(QueryContext ctx,
InputInfo ii) |
Item |
FNJson.item(QueryContext ctx,
InputInfo ii) |
Item |
FNGen.item(QueryContext ctx,
InputInfo ii) |
Item |
FNId.item(QueryContext ctx,
InputInfo ii) |
Item |
FNDate.item(QueryContext ctx,
InputInfo ii) |
Item |
FNCrypto.item(QueryContext ctx,
InputInfo ii) |
Item |
FNIndex.item(QueryContext ctx,
InputInfo ii) |
Item |
FNXslt.item(QueryContext ctx,
InputInfo ii) |
Item |
FNAcc.item(QueryContext ctx,
InputInfo ii) |
Item |
FNDb.item(QueryContext ctx,
InputInfo ii) |
Iter |
FNFile.iter(QueryContext ctx) |
Iter |
FNSql.iter(QueryContext ctx) |
ValueIter |
UserFunc.iter(QueryContext ctx) |
Iter |
FNStr.iter(QueryContext ctx) |
Iter |
FNRepo.iter(QueryContext ctx) |
Iter |
FNHof.iter(QueryContext ctx) |
Iter |
FNFunc.iter(QueryContext ctx) |
Iter |
FNUtil.iter(QueryContext ctx) |
Iter |
FNQName.iter(QueryContext ctx) |
Iter |
FNInfo.iter(QueryContext ctx) |
Iter |
FNSimple.iter(QueryContext ctx) |
Iter |
DynamicFunc.iter(QueryContext ctx) |
Iter |
FNHttp.iter(QueryContext ctx) |
Iter |
FNPat.iter(QueryContext ctx) |
Iter |
BaseFuncCall.iter(QueryContext ctx) |
Iter |
JavaMapping.iter(QueryContext ctx) |
Iter |
FNMap.iter(QueryContext ctx) |
Iter |
FNSeq.iter(QueryContext ctx) |
Iter |
FNFt.iter(QueryContext ctx) |
Iter |
FNGen.iter(QueryContext ctx) |
Iter |
FNId.iter(QueryContext ctx) |
Iter |
FNIndex.iter(QueryContext ctx) |
Iter |
FNDb.iter(QueryContext ctx) |
static java.lang.String |
FNGen.parameters(ANode nd,
InputInfo ii)
Returns all serialization options defined by a serialization element.
|
static Item |
FNNum.round(Item it,
double d,
int prec,
boolean h2e,
InputInfo ii)
Returns a rounded item.
|
static Value |
JavaMapping.toValue(java.lang.Object res)
Converts the specified result to an XQuery value.
|
Value |
UserFunc.value(QueryContext ctx) |
Value |
FNStr.value(QueryContext ctx) |
Value |
FNHof.value(QueryContext ctx) |
Value |
FNUtil.value(QueryContext ctx) |
Value |
FNSimple.value(QueryContext ctx) |
Value |
DynamicFunc.value(QueryContext ctx) |
Value |
BaseFuncCall.value(QueryContext ctx) |
Value |
JavaMapping.value(QueryContext ctx) |
Value |
FNMap.value(QueryContext ctx) |
Value |
FNGen.value(QueryContext ctx) |
Value |
FNDb.value(QueryContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
StrStream.bool(InputInfo ii) |
boolean |
QNm.bool(InputInfo ii) |
boolean |
Item.bool(InputInfo ii)
Returns a boolean representation of the value.
|
Item |
SeqType.cast(Item it,
boolean cast,
QueryContext ctx,
InputInfo ii,
Expr e)
Tries to cast the given item to this sequence type.
|
Item |
NodeType.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.
|
Item |
AtomType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
FItem |
MapType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
FItem |
FuncType.cast(Item it,
QueryContext ctx,
InputInfo ii) |
Item |
NodeType.cast(java.lang.Object o,
InputInfo ii) |
Item |
Type.cast(java.lang.Object o,
InputInfo ii)
Casts the specified Java object to the XQuery data type.
|
Item |
AtomType.cast(java.lang.Object o,
InputInfo ii) |
FItem |
FuncItem.coerceTo(FuncType ft,
QueryContext ctx,
InputInfo ii) |
abstract FItem |
FItem.coerceTo(FuncType ft,
QueryContext ctx,
InputInfo ii)
Coerces this function item to the given function type.
|
double |
DBNode.dbl(InputInfo ii) |
double |
Item.dbl(InputInfo ii)
Returns a double representation of the value.
|
java.math.BigDecimal |
Dbl.dec(InputInfo ii) |
java.math.BigDecimal |
Flt.dec(InputInfo ii) |
java.math.BigDecimal |
Item.dec(InputInfo ii)
Returns a decimal representation of the value.
|
int |
Dbl.diff(InputInfo ii,
Item it) |
int |
StrStream.diff(InputInfo ii,
Item it) |
int |
Dec.diff(InputInfo ii,
Item it) |
int |
DSim.diff(InputInfo ii,
Item it) |
int |
Bln.diff(InputInfo ii,
Item it) |
int |
QNm.diff(InputInfo ii,
Item it) |
int |
Flt.diff(InputInfo ii,
Item it) |
int |
ANode.diff(InputInfo ii,
Item it) |
int |
YMd.diff(InputInfo ii,
Item it) |
int |
Jav.diff(InputInfo ii,
Item it) |
int |
Str.diff(InputInfo ii,
Item it) |
int |
Dur.diff(InputInfo ii,
Item it) |
int |
DTd.diff(InputInfo ii,
Item it) |
int |
Int.diff(InputInfo ii,
Item it) |
int |
Atm.diff(InputInfo ii,
Item it) |
int |
Date.diff(InputInfo ii,
Item it) |
int |
Item.diff(InputInfo ii,
Item it)
Returns the difference between the current and the specified item.
|
Item |
IntSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
ItemSeq.ebv(QueryContext ctx,
InputInfo ii) |
Item |
RangeSeq.ebv(QueryContext ctx,
InputInfo ii) |
boolean |
Dbl.eq(InputInfo ii,
Item it) |
boolean |
Hex.eq(InputInfo ii,
Item it) |
boolean |
StrStream.eq(InputInfo ii,
Item it) |
boolean |
Dec.eq(InputInfo ii,
Item it) |
boolean |
Bln.eq(InputInfo ii,
Item it) |
boolean |
B64.eq(InputInfo ii,
Item it) |
boolean |
Flt.eq(InputInfo ii,
Item it) |
boolean |
ANode.eq(InputInfo ii,
Item it) |
boolean |
Jav.eq(InputInfo ii,
Item it) |
boolean |
Str.eq(InputInfo ii,
Item it) |
boolean |
Dur.eq(InputInfo ii,
Item it) |
boolean |
Int.eq(InputInfo ii,
Item it) |
boolean |
FItem.eq(InputInfo ii,
Item it) |
boolean |
Atm.eq(InputInfo ii,
Item it) |
boolean |
B64Stream.eq(InputInfo ii,
Item it) |
boolean |
Date.eq(InputInfo ii,
Item it) |
abstract boolean |
Item.eq(InputInfo ii,
Item it)
Checks the items for equality.
|
boolean |
Item.equiv(InputInfo ii,
Item it)
Checks the items for equivalence.
|
float |
Item.flt(InputInfo ii)
Returns a float representation of the value.
|
static Dbl |
Dbl.get(byte[] v,
InputInfo ii)
Returns an instance of this class.
|
static Value |
IntSeq.get(Expr[] expr,
long size,
Type type)
Creates a sequence with the integers in the specified expressions.
|
int |
Seq.hash(InputInfo ii) |
int |
QNm.hash(InputInfo ii) |
abstract int |
Value.hash(InputInfo ii)
Returns a hash code for this value.
|
int |
Item.hash(InputInfo ii) |
NewlineInput |
StrStream.input(InputInfo ii) |
java.io.InputStream |
Bin.input(InputInfo ii) |
java.io.InputStream |
Streamable.input(InputInfo ii)
Returns an input stream.
|
java.io.InputStream |
B64Stream.input(InputInfo ii) |
java.io.InputStream |
Item.input(InputInfo ii)
Returns an input stream.
|
Item |
FuncItem.invItem(QueryContext ctx,
InputInfo ii,
Value... args) |
Item |
FItem.invItem(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
Iter |
FuncItem.invIter(QueryContext ctx,
InputInfo ii,
Value... args) |
Iter |
FItem.invIter(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
Value |
FuncItem.invValue(QueryContext ctx,
InputInfo ii,
Value... args) |
abstract Value |
FItem.invValue(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
Item |
Seq.item(QueryContext ctx,
InputInfo ii) |
long |
DBNode.itr(InputInfo ii) |
long |
Item.itr(InputInfo ii)
Returns an integer (long) representation of the value.
|
static boolean |
Bln.parse(byte[] str,
InputInfo ii)
Converts the specified string to a boolean.
|
static byte[] |
FPI.parse(byte[] atom,
InputInfo ii)
Checks the specified token for validity.
|
static byte[] |
FComm.parse(byte[] str,
InputInfo ii)
Checks the specified token for validity.
|
Value |
SeqType.promote(Value val,
QueryContext ctx,
InputInfo ii)
Tries to promote the specified value to this sequence type.
|
byte[] |
Hex.string(InputInfo ii) |
byte[] |
StrStream.string(InputInfo ii) |
byte[] |
B64.string(InputInfo ii) |
byte[] |
FItem.string(InputInfo ii) |
abstract byte[] |
Item.string(InputInfo ii)
Returns a string representation of the value.
|
Item |
Seq.test(QueryContext ctx,
InputInfo ii) |
Item |
Item.test(QueryContext ctx,
InputInfo ii) |
java.lang.String |
StrStream.toJava() |
byte[] |
Bin.toJava() |
java.lang.Object |
ItemSeq.toJava() |
java.lang.Object |
FItem.toJava() |
abstract java.lang.Object |
Value.toJava()
Returns a Java representation of the value.
|
protected byte[] |
B64Stream.val(InputInfo ii) |
| Constructor and Description |
|---|
B64(byte[] v,
InputInfo ii)
Constructor.
|
Dat(byte[] d,
InputInfo ii)
Constructor.
|
Dat(Date d,
Dur a,
boolean p,
InputInfo ii)
Constructor.
|
DTd(Dur it,
double f,
boolean m,
InputInfo ii)
Constructor.
|
Dtm(byte[] dt,
InputInfo ii)
Constructor.
|
Dtm(Date d,
Dur a,
boolean p,
InputInfo ii)
Constructor.
|
Dtm(long tm,
InputInfo ii)
Constructor.
|
Dur(byte[] v,
InputInfo ii)
Constructor.
|
Hex(byte[] v,
InputInfo ii)
Constructor.
|
Tim(byte[] tim,
InputInfo ii)
Constructor.
|
Tim(Tim d,
DTd a,
boolean p,
InputInfo ii)
Constructor.
|
YMd(Dur it,
double f,
boolean m,
InputInfo ii)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map |
Map.addAll(Map other,
InputInfo ii)
Adds all bindings from the given map into
this. |
Map |
Map.coerceTo(FuncType ft,
QueryContext ctx,
InputInfo ii) |
Bln |
Map.contains(Item k,
InputInfo ii)
Checks if the given key exists in the map.
|
boolean |
Map.deep(InputInfo ii,
Map o)
Checks if the this map is deep-equal to the given one.
|
Map |
Map.delete(Item key,
InputInfo ii)
Deletes a key from this map.
|
Value |
Map.get(Item key,
InputInfo ii)
Gets the value from this map.
|
int |
Map.hash(InputInfo ii) |
Map |
Map.insert(Item k,
Value v,
InputInfo ii)
Inserts the given value into this map.
|
Value |
Map.invValue(QueryContext ctx,
InputInfo ii,
Value... args) |
java.util.HashMap<java.lang.Object,java.lang.Object> |
Map.toJava() |
TokenObjMap<java.lang.Object> |
Map.tokenJavaMap(InputInfo ii)
Converts the map to a map with tokens as keys and java objects as values.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
Iter.get(long i)
Returns the specified item, or an arbitrary item if the index is invalid.
|
abstract Item |
Iter.next()
Returns the next item or
null if no other items are found. |
abstract ANode |
NodeIter.next() |
abstract FTNode |
FTIter.next() |
Value |
Iter.value()
Returns a sequence with all iterator values.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
Path.comp(QueryContext ctx) |
Expr |
AxisStep.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) |
Iter |
AxisPath.iter(QueryContext ctx) |
Iter |
MixedPath.iter(QueryContext ctx) |
NodeIter |
AxisStep.iter(QueryContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
Updates.add(UpdatePrimitive up,
QueryContext ctx)
Adds an update primitive to the current context modifier.
|
void |
Updates.apply()
Executes all updates.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
Transform.comp(QueryContext ctx) |
Item |
Replace.item(QueryContext ctx,
InputInfo ii) |
Item |
Insert.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) |
| Modifier and Type | Method and Description |
|---|---|
void |
Put.apply() |
void |
DBOptimize.apply() |
abstract void |
UpdatePrimitive.apply()
Applies this update primitive to the corresponding database.
|
void |
DBStore.apply() |
void |
Put.merge(UpdatePrimitive p) |
abstract void |
UpdatePrimitive.merge(UpdatePrimitive p)
Merges two update primitives, as they have the same target node.
|
void |
ReplaceElementContent.merge(UpdatePrimitive p) |
void |
ReplaceValue.merge(UpdatePrimitive p) |
void |
DBRename.merge(UpdatePrimitive p) |
void |
RenameNode.merge(UpdatePrimitive p) |
void |
ReplaceNode.merge(UpdatePrimitive p) |
void |
DBAdd.prepare() |
void |
NodeCopy.prepare()
Prepares this update primitive before execution.
|
| Modifier and Type | Method and Description |
|---|---|
static QueryException |
Err.cast(InputInfo ii,
Type t,
Value v)
Throws a type cast exception.
|
static QueryException |
Err.diff(InputInfo ii,
Item it1,
Item it2)
Throws a comparison exception.
|
static QueryException |
Err.number(ParseExpr e,
Item it)
Throws a number exception.
|
static QueryException |
Err.promote(InputInfo ii,
SeqType t,
Value v)
Throws a type promoting exception.
|
QueryException |
Err.thrw(InputInfo ii,
java.lang.Object... ext)
Throws a query exception.
|
static QueryException |
Err.type(ParseExpr e,
Type t,
Item it)
Throws a type exception.
|
static QueryException |
Err.value(InputInfo ii,
Type t,
java.lang.Object v)
Throws an invalid value exception.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NSContext.add(byte[] pref,
byte[] uri,
InputInfo ii)
Validates and adds the specified namespace at parsing time.
|
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.
|
static QueryException |
Err.cast(InputInfo ii,
Type t,
Value v)
Throws a type cast exception.
|
void |
VarContext.checkUp()
Checks if none of the global variables contains an updating expression.
|
void |
VarStack.checkUp()
Checks if none of the variables contains an updating expression.
|
void |
Var.checkUp()
Checks if the variable contains no updating expression.
|
Var |
Var.comp(QueryContext ctx) |
boolean |
Compare.deep(Iter iter1,
Iter iter2)
Checks values for deep equality.
|
static boolean |
Compare.deep(Iter iter1,
Iter iter2,
InputInfo input)
Checks items for deep equality.
|
static boolean |
Compare.deep(Value val1,
Value val2,
InputInfo input)
Checks items for deep equality.
|
static QueryException |
Err.diff(InputInfo ii,
Item it1,
Item it2)
Throws a comparison exception.
|
boolean |
ItemSet.index(InputInfo ii,
Item i)
Indexes the specified item.
|
Item |
Var.item(QueryContext ctx,
InputInfo ii) |
Iter |
Var.iter(QueryContext ctx) |
static QueryException |
Err.number(ParseExpr e,
Item it)
Throws a number exception.
|
abstract ANode |
XMLConverter.parse(byte[] q)
Parses the input.
|
java.util.regex.Pattern |
RegEx.pattern(byte[] mod,
boolean ext)
Returns a regular expression pattern.
|
static QueryException |
Err.promote(InputInfo ii,
SeqType t,
Value v)
Throws a type promoting exception.
|
void |
Var.reset(SeqType t,
QueryContext ctx)
Sets the specified variable type.
|
QueryException |
Err.thrw(InputInfo ii,
java.lang.Object... ext)
Throws a query exception.
|
static QueryException |
Err.type(ParseExpr e,
Type t,
Item it)
Throws a type exception.
|
static QueryException |
Err.value(InputInfo ii,
Type t,
java.lang.Object v)
Throws an invalid value exception.
|
Value |
Var.value(QueryContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
Str |
Encryption.encryption(byte[] in,
byte[] s,
byte[] k,
byte[] a,
boolean ec)
Encrypts or decrypts the given input.
|
Item |
DigitalSignature.generateSignature(ANode node,
byte[] c,
byte[] d,
byte[] sig,
byte[] ns,
byte[] t,
byte[] expr,
ANode ce,
InputInfo ii)
Generates a signature.
|
Item |
Encryption.hmac(byte[] msg,
byte[] k,
byte[] a,
byte[] enc)
Creates a message authentication code (MAC) for the given input.
|
Item |
DigitalSignature.validateSignature(ANode node)
Validates a signature.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
DecFormatter.format(InputInfo ii,
Item number,
java.lang.String picture)
Returns a formatted number.
|
byte[] |
Formatter.formatDate(Date date,
byte[] pic,
byte[] cal,
byte[] plc,
InputInfo ii)
Formats the specified date.
|
| Constructor and Description |
|---|
DecFormatter()
Default constructor.
|
DecFormatter(InputInfo ii,
java.util.HashMap<java.lang.String,java.lang.String> map)
Constructor.
|
FormatParser(InputInfo ii,
byte[] p,
byte[] df)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ValueIter |
HTTPResponse.getResponse(java.net.HttpURLConnection conn,
byte[] status,
byte[] mediaTypeOvr)
Constructs http:response element and reads HTTP response content.
|
HTTPRequest |
HTTPRequestParser.parse(ANode request,
ItemCache bodies)
Parses an
|
Iter |
HTTPClient.sendRequest(byte[] href,
ANode request,
ItemCache bodies)
Sends an HTTP request and returns the response.
|
void |
HTTPClient.setRequestContent(java.io.OutputStream out,
HTTPRequest r)
Set HTTP request content.
|
| Modifier and Type | Method and Description |
|---|---|
ANode |
JSONConverter.parse(byte[] q) |
ANode |
JsonMLConverter.parse(byte[] q) |
static Value |
JsonMapConverter.parse(byte[] json,
InputInfo ii)
Parses a JSON string and converts it to an XQuery item made of nested maps.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PkgValidator.check(Package pkg)
Checks package descriptor and if packages involved in dependencies are
already installed.
|
void |
RepoManager.delete(java.lang.String pkg,
InputInfo ii)
Removes a package from package repository.
|
void |
RepoManager.install(java.lang.String path,
InputInfo ii)
Installs a new package.
|
JarDesc |
JarParser.parse(IO io)
Parses a jar descriptor.
|
Package |
PkgParser.parse(IO io)
Parses package descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FTBitapSearch.TokenComparator.equal(byte[] t1,
byte[] t2)
Check if two tokens are equal.
|
boolean |
FTBitapSearch.hasNext()
Is there one more match?
|
int |
FTBitapSearch.next()
Position in the haystack of the next match.
|