|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.core.Progress
org.basex.query.QueryContext
org.basex.query.xquery.XQContext
public final class XQContext
XQuery Context.
| Field Summary | |
|---|---|
byte[] |
baseURI
Static Base URI. |
byte[] |
collation
Default collation. |
Dat |
date
Current Date. |
Dtm |
dtm
Current DateTime. |
byte[] |
ftitem
Current fulltext item. |
FTOptions |
ftopt
Current fulltext options. |
FTSelect |
ftselect
Current fulltext selections. |
Functions |
fun
Functions. |
Item |
item
Current context. |
Namespaces |
ns
Namespaces. |
URI |
nsElem
Default element namespace. |
URI |
nsFunc
Default function namespace. |
int |
pos
Current context position. |
int |
size
Current context size. |
Tim |
time
Current Time. |
Variables |
vars
Variables. |
| Constructor Summary | |
|---|---|
XQContext()
|
|
| Method Summary | |
|---|---|
void |
addColl(FDoc coll)
Adds a collection. |
NodeBuilder |
coll(byte[] coll)
Returns the specified collection. |
void |
compile(Nodes nodes)
Optimizes the expression. |
DNode |
doc(byte[] db)
Adds a database instance or returns an existing one. |
Item |
eval(Expr expr)
Evaluates the specified expression. |
Result |
eval(Nodes nodes)
Evaluates the expression with the specified context set. |
Iter |
iter(Expr expr)
Evaluates the specified expression and returns an iterator. |
| Methods inherited from class org.basex.query.QueryContext |
|---|
compInfo, det, evalInfo, head, info, prog |
| Methods inherited from class org.basex.core.Progress |
|---|
detail, header, progress, progress, stop, stopped |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public byte[] baseURI
public byte[] collation
public Dat date
public Dtm dtm
public byte[] ftitem
public FTOptions ftopt
public FTSelect ftselect
public Functions fun
public Item item
public Namespaces ns
public URI nsElem
public URI nsFunc
public int pos
public int size
public Tim time
public Variables vars
| Constructor Detail |
|---|
public XQContext()
| Method Detail |
|---|
public void addColl(FDoc coll)
throws XQException
coll - collection to be added
XQException - evaluation exception
public NodeBuilder coll(byte[] coll)
throws XQException
coll - name of the collection to be returned.
XQException - evaluation exception
public void compile(Nodes nodes)
throws XQException
QueryContext
compile in class QueryContextnodes - node context
XQException
public DNode doc(byte[] db)
throws XQException
db - database name or file path
XQException - evaluation exception
public Item eval(Expr expr)
throws XQException
expr - expression to be evaluated
XQException - evaluation exception
public Result eval(Nodes nodes)
throws XQException
QueryContext
eval in class QueryContextnodes - initial context set
XQException
public Iter iter(Expr expr)
throws XQException
expr - expression to be evaluated
XQException - evaluation exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||