public final class Find extends Command
| Constructor and Description |
|---|
Find(java.lang.String query)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandBuilder cb)
Builds a string representation from the command.
|
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.
|
java.lang.String |
pinned(Context ctx)
Checks if the database to be updated is opened (pinned) by a process in another JVM.
|
Result |
result()
Returns the result set, generated by a query command.
|
protected boolean |
run()
Executes the command and serializes the result (internal call).
|
boolean |
stoppable()
Returns true if this command can be stopped.
|
boolean |
updated()
Checks if the command has updated any data.
|
boolean |
updating(Context ctx)
Checks if the command performs updates/write operations.
|
close, error, execute, execute, getOption, getOption, info, info, newData, run, setInput, setInput, supportsProg, toStringpublic Find(java.lang.String query)
query - simplified queryprotected boolean run()
Commandpublic boolean updating(Context ctx)
Commandctx - database contextpublic static java.lang.String find(java.lang.String query,
Context ctx,
boolean root)
query - queryctx - database contextroot - root flagpublic 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 flagpublic java.lang.String pinned(Context ctx)
Commandpublic boolean updated()
Commandtrue.public final Result result()
CommandProp.CACHEQUERY is set, and can only be called once.public void build(CommandBuilder cb)
Command