ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valentin Kulichenko <valentin.kuliche...@gmail.com>
Subject Indexing primitive types
Date Thu, 21 May 2015 01:25:22 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message