Anthony,
You can use a complex object with several fields as a value. Use
@QuerySqlField annotation to annotate queried and/or indexed fields and use
these fields in your SQL query.
So in your case it will be smth like this:
class Instrument {
@QuerySqlField(index = true)
private String symbol;
private double price;
}
And the query will be: "select symbol, count(symbol) as cnt from Instrument
group by symbol"
Here is the documentation page for more information on queries API:
http://apacheignite.readme.io/v1.1/docs/cache-queries
Thanks!
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Question-regarding-possible-use-case-of-Sliding-Windows-tp530p561.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.