|
||||||||||
| 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. |
Context |
context
Database context. |
Dat |
date
Current Date. |
DBNode[] |
doc
Used documents. |
int |
docs
Number of documents. |
Dtm |
dtm
Current DateTime. |
IO |
file
Reference to the query file. |
boolean |
ftfast
Fast full-text evaluation (stop after first hit). |
byte |
ftoknum
Full-text token counter (for visualization). |
FTOpt |
ftopt
Current full-text options. |
FTPosData |
ftpos
Full-text position data (for visualization). |
Tokenizer |
fttoken
Current full-text token. |
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. |
Scoring |
score
Scoring instance. |
long |
size
Current context size. |
boolean |
spaces
Default boundary-space. |
java.util.HashMap<java.lang.String,java.lang.String> |
stop
Cached stop word files. |
java.util.HashMap<java.lang.String,java.lang.String> |
thes
Cached thesaurus files. |
Tim |
time
Current Time. |
Variables |
vars
Variables. |
| Constructor Summary | |
|---|---|
QueryContext(Context ctx)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addColl(NodIter ni,
byte[] name)
Adds a collection. |
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 final Context context
public java.util.HashMap<java.lang.String,java.lang.String> stop
public java.util.HashMap<java.lang.String,java.lang.String> thes
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 DBNode[] doc
public int docs
public FTPosData ftpos
public byte ftoknum
public boolean ftfast
public Scoring score
public FTOpt ftopt
public Tokenizer fttoken
public Dat date
public Dtm dtm
public Tim time
public byte[] nsFunc
public Uri baseURI
public byte[] nsElem
public Uri collation
public boolean spaces
public boolean orderGreatest
public boolean nsPreserve
public boolean nsInherit
public boolean ordered
public boolean construct
public int revalidate
| Constructor Detail |
|---|
public QueryContext(Context ctx)
ctx - context reference| Method Detail |
|---|
public void parse(java.lang.String q)
throws QueryException
q - input query
QueryException - query exception
public void module(java.lang.String q)
throws QueryException
q - input query
QueryException - query 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 - I/O exception
public Iter iter(Expr e)
throws QueryException
e - expression to be evaluated
QueryException - 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 - query exception
public Iter coll(byte[] coll)
throws QueryException
coll - name of the collection to be returned.
QueryException - query 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
tit in class Progresspublic 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 | |||||||||