Hi Godmar,
So you did implement a hidden cursor protocol with 0, 1, 2, and 3s sent to the server.
the client sends the query with an starting control-code (0) to the server. The server knows now that the query has to execute in an iterative manner and stores this query with the corresponding id in a list. The client gets an id for this query back. So if the client wants results of this query it sends the control-code (1) and the id to the server. So the server knows that the next result has to send to the client.
The control-code (3) is needed for the creation of a database (see the create-method).
I hope this explains a bit, kind regards, Andreas
Godmar Back schrieb:
On Thu, Aug 19, 2010 at 4:06 AM, Michael Seiferle <michael.seiferle@uni-konstanz.de mailto:michael.seiferle@uni-konstanz.de> wrote:
[1] https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/java/QueryExample.java
I see. So you did implement a hidden cursor protocol with 0, 1, 2, and 3s sent to the server.
(Actually, I'm just noticing it's document in https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/readme.txt )
Thanks!
- Godmar
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk