Support,

In review of Ignite Documentation (1.7.0) , I have the following questions
about the proper use of 'CacheConfiguration.setIndexedTypes'

In the 'ignite-examples' that come with distribution, the 'Person' class is
annotated
as follows:

   //Person's annotations
    /** Person ID (indexed). */
    @QuerySqlField(index = true)
    public Long id;

    /** Organization ID (indexed). */
    @QuerySqlField(index = true)
    public Long orgId;

    /** Salary (indexed). */
    @QuerySqlField(index = true)
    public double salary;

  In the 'Person' class, 3 fields are  annotated (@QuerySqlField(index =
true))
  indexed: 'id', 'orgId', and 'salary'.

 However, in the 'CacheQueryExample' class, it's main method contains:

            personCacheCfg.setIndexedTypes(AffinityKey.class, Person.class);


Question:
Will you explain when it is necessary for
CacheConfiguration.setIndexedTypes()
to be applied for  respective fields annotated with @QuerySqlField(index =
true)?

IE: Why  isn't 'salary' used in CacheConfiguration.setIndexedTypes()?


Please advise.

Regards,
techbysample








--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Question-When-to-use-CacheConfiguration-setIndexedTypes-tp8721.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to