Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4B487200D8E for ; Thu, 28 Dec 2017 01:09:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 497B7160C23; Thu, 28 Dec 2017 00:09:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 97361160C32 for ; Thu, 28 Dec 2017 01:09:04 +0100 (CET) Received: (qmail 52769 invoked by uid 500); 28 Dec 2017 00:07:05 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 52756 invoked by uid 99); 28 Dec 2017 00:07:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Dec 2017 00:07:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 33BACC55E4 for ; Thu, 28 Dec 2017 00:07:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.979 X-Spam-Level: * X-Spam-Status: No, score=1.979 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ex_8jpjpLryr for ; Thu, 28 Dec 2017 00:07:03 +0000 (UTC) Received: from mail-ot0-f182.google.com (mail-ot0-f182.google.com [74.125.82.182]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D9F985FACF for ; Thu, 28 Dec 2017 00:07:01 +0000 (UTC) Received: by mail-ot0-f182.google.com with SMTP id 37so6552915otv.6 for ; Wed, 27 Dec 2017 16:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=eqtUMKb+S6Xho2xkJ0Vsj0YksVn0luWOau4w+Oo2+GI=; b=cEImcT5K5/Y8nQFohdEZzI9PSY/+rULWDXbvJwvFDF3AoTuCJXhElMpGXNeG6iKubQ CSAhQDkOApmKghjpapEMrifXxyk7Nm29ZxhzN8VyrKC+RTnByQOQY7bI8a+KGZenJuFO W7qu+fkXH6cZKoR7UY6UPicFxXDHXAukYa4Mqzt4xXdJtDKQxhxTQK8tOea83lxAls72 OHrUwelsU3qgf9ykY3xwq41DA3fur8lapjAqnfpXZWaHqoJ0VNycWRDUXq58mO2wRILY zrsf7TTkfhBy7oJEqxShRP9O6W0eTs+85U3PzJ196cPsykpyLvikYKUhSeHJmKjRPMoe iogA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eqtUMKb+S6Xho2xkJ0Vsj0YksVn0luWOau4w+Oo2+GI=; b=AEFNBbF4AcXJjTAT1nHZrDo7pNA0nOdUzATWifg3Gb3dSwUkwLBaHGj1KISmOizhY5 v5VZyHwLrtkmdIhFAywW1rAUEJIT1znFD4WZieNyFPLGub/Tkk+qHeLxs34TY8Jclj/4 OdLj5y1bPQ987VaRKUD895CykaOUTnm9QBib6Jyc8/CHFdmooeJKkrxFTwgHmpwlRjme BpplIVNnbUX5OkjAnsOt9nFI5ArT5Rbzb3tWGhmp3rJs6aS6o1aG64fRceTE1CuUfcmu DJ6Gwpr4I8/0w/WtizCDFm0F0/cfPE3Khv/1BN8y9gzJcf6teXtTS/2NSb5a09pX0RU+ 8Miw== X-Gm-Message-State: AKGB3mKOxZDI0DTJLOBabqbyHHlVT385p3gSpH2lpJEynpfcrFbLLuMN TBCzhpR7gcskExJ5Id5+afJvOrGtQpTYQKkRZZdwJFt0 X-Google-Smtp-Source: ACJfBot+xWn2p71cR0CyijZ5M1WrcRgv3KM0mbuhotW2hZprxGgO68vxk19oTnQ21fAiDdWZFT00tUSEZKDUrPSTxp4= X-Received: by 10.157.31.113 with SMTP id x46mr15533718otx.5.1514419620380; Wed, 27 Dec 2017 16:07:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.52.197 with HTTP; Wed, 27 Dec 2017 16:06:30 -0800 (PST) From: Prachi Garg Date: Wed, 27 Dec 2017 16:06:30 -0800 Message-ID: Subject: Thin Client documentation: OP_QUERY_SQL_CURSOR_GET_PAGE To: dev@ignite.apache.org, Pavel Tupitsyn Content-Type: multipart/alternative; boundary="001a1141d3b28395ba05615b4b3e" archived-at: Thu, 28 Dec 2017 00:09:05 -0000 --001a1141d3b28395ba05615b4b3e Content-Type: text/plain; charset="UTF-8" Pavel, I have 2 records in my cache, and when I run an example for OP_QUERY_SQL=2002 with cursor page size 1, I get the following result (expected) len: 83 resReqId: 1 status code: 0 cursorId: 1 rowCount: 1 moreResults: true Then, I run the OP_QUERY_SQL_CURSOR_GET_PAGE = 2003, using the following code: DataOutputStream out = new DataOutputStream(socket.getOutputStream()); // Message length writeIntLittleEndian(18, out); // Op code = QUERY_SQL_CURSOR_GET_PAGE writeShortLittleEndian(2003, out); // Request id (can be anything) long reqId = 1; writeLongLittleEndian(reqId, out); // Cursor Id writeLongLittleEndian(1, out); // Send request out.flush(); // Read result DataInputStream in = new DataInputStream(socket.getInputStream()); // Response length final int len = readIntLittleEndian(in); System.out.println("len: " + len); // Request id long resReqId = readLongLittleEndian(in); System.out.println("resReqId: " + resReqId); // Success int statusCode = readIntLittleEndian(in); System.out.println("status code: " + statusCode); int rowCount = readIntLittleEndian(in); System.out.println("rowCount: " + rowCount); // Read entries (as user objects) for (int i = 0; i < rowCount; i++){ // ... } boolean moreResults = readBooleanLittleEndian(in); System.out.println("moreResults: " + moreResults); but the result is not what is expected: len: 1 resReqId: 44096429228032 status code: 721512192 rowCount: 1672392448 moreResults: true Also, there is no error on server side. Anything wrong in the OP_QUERY_SQL_CURSOR_GET_PAGE request that I am sending? -Prachi --001a1141d3b28395ba05615b4b3e--