|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.AQuery
org.basex.core.cmd.Find
public final class Find
Evaluates the 'find' command and processes a simplified request as XQuery.
Field Summary |
---|
Fields inherited from class org.basex.core.cmd.AQuery |
---|
result |
Fields inherited from class org.basex.core.Command |
---|
args, context, in, mprop, out, perf, prop |
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
Find(java.lang.String query)
Default constructor. |
|
Find(java.lang.String query,
boolean rt)
Default constructor. |
Method Summary | |
---|---|
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process. |
static java.lang.String |
find(java.lang.String query,
Context ctx,
boolean root)
Creates an XQuery representation for the specified query. |
static java.lang.String |
findTable(StringList filter,
TokenList cols,
BoolList elem,
byte[] tag,
boolean root)
Creates an XQuery representation for the specified table query. |
protected boolean |
run()
Executes the command and serializes the result (internal call). |
boolean |
updating(Context ctx)
Checks if the command performs updates/write operations. |
Methods inherited from class org.basex.core.cmd.AQuery |
---|
build, query, queryNodes, result, stoppable, updated, updating |
Methods inherited from class org.basex.core.Command |
---|
close, databases, error, execute, execute, getOption, getOption, info, info, newData, run, run, setInput, setInput, supportsProg, toString |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Find(java.lang.String query)
query
- simplified querypublic Find(java.lang.String query, boolean rt)
query
- simplified queryrt
- start from root nodeMethod Detail |
---|
protected boolean run()
Command
run
in class Command
public boolean updating(Context ctx)
Command
updating
in class AQuery
ctx
- database context
public void databases(LockResult lr)
Proc
databases
in class AQuery
lr
- Container for lock result to pass aroundpublic static java.lang.String find(java.lang.String query, Context ctx, boolean root)
query
- queryctx
- database contextroot
- start from root node
public static java.lang.String findTable(StringList filter, TokenList cols, BoolList elem, byte[] tag, boolean root)
filter
- filter termscols
- filter columnselem
- element flagtag
- root tagroot
- root flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |