|
||||||||||
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. |
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. |
String |
query
Query string. |
int |
revalidate
Revalidation Mode. |
Scoring |
score
Scoring instance. |
long |
size
Current context size. |
boolean |
spaces
Default boundary-space. |
HashMap<String,String> |
stop
Cached stop word files. |
HashMap<String,String> |
thes
Cached thesaurus files. |
Tim |
time
Current Time. |
Updates |
updates
Pending updates. |
boolean |
updating
Indicates if this query performs updates. |
Variables |
vars
Variables. |
Constructor Summary | |
---|---|
QueryContext(Context ctx)
Constructor. |
Method Summary | |
---|---|
void |
addColl(NodIter ni,
byte[] name)
Adds a collection. |
void |
addDoc(DBNode node)
Adds a document to the document array. |
SeqIter |
coll(byte[] coll)
Adds a collection instance or returns an existing one. |
void |
compile()
Optimizes the expression. |
void |
compInfo(String string,
Object... ext)
Adds some optimization info. |
Data |
data()
Returns the common database reference of all items or null. |
String |
det()
Returns short information on this process. |
DBNode |
doc(byte[] path,
boolean coll,
boolean db)
Adds a database instance or returns an existing one. |
void |
evalInfo(String string,
Object... ext)
Adds some evaluation info. |
IO |
file()
Returns an IO representation of the base uri. |
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(String q)
Parses the specified module. |
void |
parse(String q)
Parses the specified query. |
double |
prog()
Returns progress information. |
void |
serialize(Serializer ser,
Item i)
Serializes the specified item. |
String |
tit()
Returns short information on this process. |
String |
toString()
|
Methods inherited from class org.basex.core.Progress |
---|
abort, 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 HashMap<String,String> stop
public HashMap<String,String> thes
public 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 byte[] nsElem
public Uri baseURI
public Uri collation
public boolean spaces
public boolean orderGreatest
public boolean nsPreserve
public boolean nsInherit
public boolean ordered
public boolean construct
public int revalidate
public Updates updates
public boolean updating
Constructor Detail |
---|
public QueryContext(Context ctx)
ctx
- context referenceMethod Detail |
---|
public void parse(String q) throws QueryException
q
- input query
QueryException
- query exceptionpublic void module(String q) throws QueryException
q
- input query
QueryException
- query exceptionpublic void compile() throws QueryException
QueryException
- query exceptionpublic Iter iter() throws QueryException
QueryException
- query exceptionpublic void serialize(Serializer ser, Item i) throws IOException
ser
- serializeri
- item to serialize
IOException
- I/O exceptionpublic Iter iter(Expr e) throws QueryException
e
- expression to be evaluated
QueryException
- query exceptionpublic void compInfo(String string, Object... ext)
string
- evaluation infoext
- text text extensionspublic void evalInfo(String string, Object... ext)
string
- evaluation infoext
- text text extensionspublic DBNode doc(byte[] path, boolean coll, boolean db) throws QueryException
path
- database name or file pathcoll
- collection flagdb
- database flag
QueryException
- query exceptionpublic void addDoc(DBNode node)
node
- node to be addedpublic SeqIter coll(byte[] coll) throws QueryException
coll
- name of the collection to be returned
QueryException
- query exceptionpublic void addColl(NodIter ni, byte[] name)
ni
- collection nodesname
- namepublic Data data() throws QueryException
QueryException
- query exceptionpublic IO file()
public String info()
public String tit()
Progress
tit
in class Progress
public String det()
Progress
det
in class Progress
public double prog()
Progress
prog
in class Progress
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |