Package org.basex.server
Class ServerQuery
java.lang.Object
org.basex.core.jobs.Job
org.basex.server.ServerQuery
Server query representation, generated by
LocalQuery and ClientQuery.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBinds a global variable.voidBinds the context value.voidexecute(OutputStream out, boolean iterative, boolean encode, boolean full) Executes the query.info()Returns the query info.Returns the serialization parameters.booleanupdating()Returnstrueif the query may perform updates.
-
Constructor Details
-
ServerQuery
Constructor.- Parameters:
query- query stringctx- database context
-
-
Method Details
-
bind
Binds a global variable.- Parameters:
name- name of variablevalue- value to be boundtype- type- Throws:
IOException- query exception
-
context
Binds the context value.- Parameters:
value- value to be boundtype- type- Throws:
IOException- query exception
-
info
Returns the query info.- Returns:
- query info
-
parameters
Returns the serialization parameters.- Returns:
- serialization parameters
- Throws:
IOException- I/O Exception
-
updating
Returnstrueif the query may perform updates.- Returns:
- updating flag
- Throws:
IOException- I/O Exception
-
execute
public void execute(OutputStream out, boolean iterative, boolean encode, boolean full) throws IOException Executes the query.- Parameters:
out- output streamiterative- iterative evaluationencode- encode results (client/server communication, iterative processing)full- return full type information (only applicable to iterative evaluation)- Throws:
IOException- I/O Exception
-