Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 298FD18947 for ; Thu, 21 May 2015 06:48:38 +0000 (UTC) Received: (qmail 78460 invoked by uid 500); 21 May 2015 06:48:38 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 78419 invoked by uid 500); 21 May 2015 06:48:38 -0000 Mailing-List: contact dev-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list dev@ignite.incubator.apache.org Received: (qmail 78407 invoked by uid 99); 21 May 2015 06:48:37 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2015 06:48:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 45BA5C11B9 for ; Thu, 21 May 2015 06:48:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.898 X-Spam-Level: *** X-Spam-Status: No, score=3.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Lw05ZZ7RRaqh for ; Thu, 21 May 2015 06:48:36 +0000 (UTC) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 2AB0E2608B for ; Thu, 21 May 2015 06:48:36 +0000 (UTC) Received: by iepj10 with SMTP id j10so1551611iep.3 for ; Wed, 20 May 2015 23:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=GdFjB7T7CHwAhIJCRuEhYjMVzE68VgJAEpPGeJ6kEWQ=; b=R4oACG3HjoyEQ9x7QzKjhn+9J39XrHSeNLRuMB/GEgqHjY9SBUcWiMbEjZMsFXcjIU 6Cw+f/fmh55ilTJci1rQxOkfz8kc1gtBd3BgIFaPPbjy0N6bnBuvc+Sqaeyy+S8A2LsT iF70RbLzw5D+ANh44SVHzp+u3pJo4XuXtf6dkDRjiTUqRGycxWxWJsDSuF5UNxK8Pw+E 26ZM+r19fXMtbwziuvxQz92Js650OV3Y1gcC8M/u0P8k7deZHB3NgKuxBjJTWdsa7sNz Z6NvHkYSYQdtjggg4gXZ0fMTYDlfw7ACD5+xLaHxFaDalcM05DECiV9tj/yeSjWPXEnB SFiw== X-Received: by 10.107.10.146 with SMTP id 18mr1505440iok.40.1432190870408; Wed, 20 May 2015 23:47:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.22.1 with HTTP; Wed, 20 May 2015 23:47:10 -0700 (PDT) In-Reply-To: References: From: Sergi Vladykin Date: Thu, 21 May 2015 09:47:10 +0300 Message-ID: Subject: Re: Indexing primitive types To: dev@ignite.incubator.apache.org Content-Type: multipart/alternative; boundary=001a113f938414d6d2051691ec20 --001a113f938414d6d2051691ec20 Content-Type: text/plain; charset=UTF-8 Current workaround is to create separate class with single annotated primitive field. Created issue https://issues.apache.org/jira/browse/IGNITE-930 Will fix it soon. Sergi 2015-05-21 4:25 GMT+03:00 Valentin Kulichenko : > Igniters (especially Sergi), > > What happens if I use Java primitives like Doubles as values? Are they > indexed? I just created a simple example which loads some data and executes > this query: 'select max(_val) from Double'. Indexes are not created and the > speed of the query is the same as the speed of full cache iteration. > > I can't find any configuration properties to tweak this behavior. Also I > see this in GridQueryProcessor.processAnnotationsInClass() method: > > if (U.isJdk(cls)) > return; > > So it looks like all JDK classes are simply ignored. Is this on purpose? > > I think primitives should be indexed by default if they are provided in > CacheConfiguration.setIndexedTypes(). > > -- > Val > --001a113f938414d6d2051691ec20--