Besides the question above, I have another question.
If I use a composed key like this:
public class DpKey implements Serializable {
//key=devId + "_" + dpId
private String key;
@AffinityKeyMapped
private String devId;
//getter setter
}
Now I need to add records like this,
IgniteCache<DpKey, CacheEntry> cache = ignite.cache("cache");
cache.query(new SqlFieldsQuery("MERGE INTO t_cache(id, devId, dpId)" +
" values (1, 'devId001', '001'), (2, 'devId002', '002')"));
And I also need to get value with igniteCache.get(key), but I do not know
what is the key.
Can I assign a key when inserting a record?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/