Sure here is the code           

QueryEntity qryEntity = new QueryEntity();
                qryEntity.setKeyType("myapp.bpepoc.model.MyModelKey");
                qryEntity.setValueType("myapp.bpepoc.model.MyModel");

                LinkedHashMap<String, String> fields = new LinkedHashMap<>();
                fields.put("rowId", "java.lang.Integer");
                fields.put("validOn", "java.lang.Integer");
                fields.put("myFk", "java.lang.Integer");
                fields.put("rowType", "java.lang.Short");
                fields.put("businessRef", "java.lang.String");
                fields.put("status", "java.lang.Short");
                fields.put("modifDate", "java.sql.Date");
                fields.put("ideCreditGroupRef", "java.lang.String");
                fields.put("ideSegmentationRef", "java.lang.String");
                fields.put("ideInternalPartyRef", "java.lang.String");
                fields.put("ideInternalOne", "java.lang.String");

                qryEntity.setFields(fields);

                Collection<QueryIndex> idxs = new ArrayList<>();
                QueryIndex idx = new QueryIndex();
                idx.setName("FPK");
                LinkedHashMap<String, Boolean> idxFlds = new LinkedHashMap<>();
                idxFlds.put("rowId", true);
                idxFlds.put("myFk", true);
                idxFlds.put("validOn", true);
                idxFlds.put("businessRef", true);
                idx.setFields(idxFlds);
                idxs.add(idx);
                
                qryEntity.setIndexes(idxs);

                final List<QueryEntity> queryEntities = new ArrayList<>();
        queryEntities.add(qryEntity);
                
                final CacheConfiguration<K, V> ccfg = new 
CacheConfiguration<>(cacheName);
                ....
                ccfg.setQueryEntities(queryEntities);




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LoadCache-Performance-decreases-with-the-size-of-the-cache-tp9645p9705.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to