|
||||||||||
| 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
public final class QueryContext
This abstract query expression provides the architecture for a compiled query.
| Field Summary | |
|---|---|
Uri |
baseURI
Static Base URI. |
Uri |
collation
Default collation. |
boolean |
construct
Construction mode. |
Dat |
date
Current Date. |
DBNode[] |
docs
Used documents. |
Dtm |
dtm
Current DateTime. |
byte[] |
encoding
Default encoding. |
IO |
file
Reference to the query file. |
int |
ftcount
Count number of FTIndex. |
IntList[] |
ftd
Temporary place for ftdata. |
FTPosData |
ftdata
Current fulltext item. |
FTTokenizer |
ftitem
Current fulltext item. |
FTOpt |
ftopt
Current fulltext options. |
FTPos |
ftpos
Current fulltext position filter. |
Functions |
fun
Functions. |
Item |
item
Current context. |
boolean |
leaf
Current leaf flag. |
NSLocal |
ns
Namespaces. |
byte[] |
nsElem
Default element namespace. |
byte[] |
nsFunc
Default function namespace. |
boolean |
nsInherit
Inherit Namespaces. |
boolean |
nsPreserve
Preserve Namespaces. |
boolean |
ordered
Ordering mode. |
boolean |
orderGreatest
Empty Order mode. |
long |
pos
Current context position. |
java.lang.String |
query
Query string. |
int |
revalidate
Revalidation Mode. |
int |
rootDocs
Initial number of documents. |
long |
size
Current context size. |
boolean |
spaces
Default boundary-space. |
java.util.HashMap<java.lang.String,java.lang.String> |
stop
Cached stop word files. |
Tim |
time
Current Time. |
Variables |
vars
Variables. |
| Constructor Summary | |
|---|---|
QueryContext()
|
|
| Method Summary | |
|---|---|
void |
addColl(NodIter ni,
byte[] name)
Adds a collection. |
void |
close()
Closes the context. |
Iter |
coll(byte[] coll)
Adds a collection instance or returns an existing one. |
void |
compile()
Optimizes the expression. |
void |
compInfo(java.lang.String string,
java.lang.Object... ext)
Adds some optimization info. |
Data |
data()
Returns the common database reference of all items or null. |
java.lang.String |
det()
Returns short information on this process. |
DBNode |
doc(byte[] db,
boolean coll)
Adds a database instance or returns an existing one. |
void |
evalInfo(java.lang.String string,
java.lang.Object... ext)
Adds some evaluation info. |
java.lang.String |
info()
Returns query background information. |
Iter |
iter()
Returns a result iterator. |
Iter |
iter(Expr e)
Evaluates the specified expression and returns an iterator. |
void |
module(java.lang.String q)
Parses the specified module. |
void |
parse(java.lang.String q)
Parses the specified query. |
double |
prog()
Returns progress information. |
void |
serialize(Serializer ser,
Item i)
Serializes the specified item. |
java.lang.String |
tit()
Returns short information on this process. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.core.Progress |
|---|
checkStop, detail, progress, progress, stop, title |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.util.HashMap<java.lang.String,java.lang.String> stop
public IO file
public java.lang.String query
public NSLocal ns
public Functions fun
public Variables vars
public Item item
public long pos
public long size
public boolean leaf
public FTPosData ftdata
public FTTokenizer ftitem
public FTOpt ftopt
public FTPos ftpos
public int ftcount
public IntList[] ftd
public Dat date
public Dtm dtm
public Tim time
public byte[] nsFunc
public Uri baseURI
public byte[] nsElem
public Uri collation
public DBNode[] docs
public int rootDocs
public boolean spaces
public boolean orderGreatest
public byte[] encoding
public boolean nsPreserve
public boolean nsInherit
public boolean ordered
public boolean construct
public int revalidate
| Constructor Detail |
|---|
public QueryContext()
| Method Detail |
|---|
public void parse(java.lang.String q)
throws QueryException
q - input query
QueryException - xquery exception
public void module(java.lang.String q)
throws QueryException
q - input query
QueryException - xquery exception
public void compile()
throws QueryException
QueryException - query exception
public Iter iter()
throws QueryException
QueryException - query exception
public void serialize(Serializer ser,
Item i)
throws java.io.IOException
ser - serializeri - item to serialize
java.io.IOException - query exception
public Iter iter(Expr e)
throws QueryException
e - expression to be evaluated
QueryException - query exception
public void close()
throws java.io.IOException
java.io.IOException - query exception
public void compInfo(java.lang.String string,
java.lang.Object... ext)
string - evaluation infoext - text text extensions
public void evalInfo(java.lang.String string,
java.lang.Object... ext)
string - evaluation infoext - text text extensions
public DBNode doc(byte[] db,
boolean coll)
throws QueryException
db - database name or file pathcoll - collection flag
QueryException - evaluation exception
public Iter coll(byte[] coll)
throws QueryException
coll - name of the collection to be returned.
QueryException - evaluation exception
public void addColl(NodIter ni,
byte[] name)
ni - collection nodesname - name
public Data data()
throws QueryException
QueryException - query exceptionpublic java.lang.String info()
public java.lang.String tit()
Progress
public java.lang.String det()
Progress
det in class Progresspublic double prog()
Progress
prog in class Progresspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||