ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dkarachentsev <dkarachent...@gridgain.com>
Subject Re: Error CacheConfig
Date Tue, 07 Feb 2017 14:28:29 GMT

You need to configure indexing to use queries. For that you may use
CacheConfiguration.setIndexedTypes() or setup QueryEntity [1, 2].

For example, if you configuring cache with Integer key and String value:
CacheConfiguration<Integer, String> cfg = new
cfg.setIndexedTypes(Integer.class, String.class);

After that you will be able to perform SQL queries on it.

For custom key/value use mentioned above annotations or QueryEntity, f.e.:

public class Key {
  private String key;

public class Value {
  private String value;

cfg.setIndexedTypes(Key.class, Value.class);


View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Error-CacheConfig-tp10477p10480.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message