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 A4C95200B16 for ; Mon, 20 Jun 2016 12:31:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A37F0160A55; Mon, 20 Jun 2016 10:31:52 +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 EEE18160A24 for ; Mon, 20 Jun 2016 12:31:51 +0200 (CEST) Received: (qmail 87373 invoked by uid 500); 20 Jun 2016 10:31:51 -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 87361 invoked by uid 99); 20 Jun 2016 10:31:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2016 10:31:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6320218023E for ; Mon, 20 Jun 2016 10:31:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id s_jM1dLVTIZ4 for ; Mon, 20 Jun 2016 10:31:47 +0000 (UTC) Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 4A82E5F260 for ; Mon, 20 Jun 2016 10:31:47 +0000 (UTC) Received: by mail-qk0-f173.google.com with SMTP id t127so33874066qkf.1 for ; Mon, 20 Jun 2016 03:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ygV0La4bMlVWgrZUsYkxlw3rIV062Vsd0fYv0yoLWV8=; b=zjyPG4ZjKXPj2N+xJlSJ4JZmIpuwjrJNpKz9lRSGeDMR49DDqjtZr1mzMrJq6j9Xt2 F9hv81QFz793eo5Lnx4rLIQPXKLDN8aRQYrmHUCQEYLs9qAvr5c8qmdPVCbIC8z48Qoi BRt6ID9Zhk8AcpCeR/RH07qapEimsIuWpPiXNi0nfXfw3XLJCM54VyG3JEDqJfuF8D28 wV4phXXrDWFbMCjnMdaf//S0v1JWX8SLm9vqMlaWyYitTlZi5+VjxumL9P2OI9gqUN63 ZzvQoT9daYWpJvZYYeLQYiSt7BxLtzkVUEwUPwY1eMZhk1ONRkGeVmGBsUsdRYu96/Ak a8aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ygV0La4bMlVWgrZUsYkxlw3rIV062Vsd0fYv0yoLWV8=; b=NoU7Pvh84D5+PBlJe7g45nmYT5F5GNP2eALnNCAPUHMfnHzFajYuWOUIsjevVoOiaY +VdkjVimgxUQZKyfVGeFPYhV45bEIhgF7mqwPatiFFX8FtdLf+r963vx26Ir2UTjByVE fNQ2aBMg+USpbec+FYYSJ9Nfe/bB5A8/kku4M+7cmgPqbydYhovuj9nMJMFWoKJfnUQu HnchNVXTxlEAE70OZsYPzYBO9pH4kYfE4P/C7WvKCrqERugGAuJnNKbaXr6lveC5HD0z CzpcyPTR9WbG1iV5t1bvVtzRum8x9wTYsWMxqtkE1Nbde/CYnYGyLFJXRylSYXRs1ec3 OfEQ== X-Gm-Message-State: ALyK8tIuTMRkqvNyPAGNV227NHD0rjH/UzlSF25e0pCI+cQKgLj0gu2e2jQm/bADzzP823P/b8epeHBVHtyS8Axg X-Received: by 10.237.44.165 with SMTP id g34mr20572620qtd.17.1466418706202; Mon, 20 Jun 2016 03:31:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.137.130 with HTTP; Mon, 20 Jun 2016 03:31:45 -0700 (PDT) In-Reply-To: References: From: Sergey Kozlov Date: Mon, 20 Jun 2016 13:31:45 +0300 Message-ID: Subject: Re: Add key type detection for REST HTTP GET command To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=94eb2c124a58135a240535b33674 archived-at: Mon, 20 Jun 2016 10:31:52 -0000 --94eb2c124a58135a240535b33674 Content-Type: text/plain; charset=UTF-8 Hi Alexey. It's a good idea! Now I'm facing the issue when load the data via java code (Long, Person) but REST Get/GetAll returns null for loaded keys. I suppose that the reason is wrong mapping of the key passed to REST command. On Mon, Jun 20, 2016 at 1:20 PM, Alexey Kuznetsov wrote: > Hi, All! > > It seems that in current implementation ( > https://apacheignite.readme.io/docs/rest-api#get) > GET command could work only with String keys. > > How about to add optional parameter "keyType" and implement support for > common built-in types such as Integer, Long, UUID,... and user classes that > a valid JavaBeans? > > Sample: http://host:port > /ignite?cmd=get&key=1&cacheName=myCache&keyType=Long > > Thoughts? > > -- > Alexey Kuznetsov > -- Sergey Kozlov GridGain Systems www.gridgain.com --94eb2c124a58135a240535b33674--