0
votes

When I create an Apache Ignite cache I believe it is implemented as a HashMap

Is it possible to configure it as a TreeMap, so that the order of the keys is guaranteed?

1
What's the goal of storing the keys in such an order? Ignite ScanQueries can iterate through data efficiently and SQL can be used for advanced data access.dmagda
However, Ignite implements indexing for SQL queries, so I assume it would have some value for scan queries.IanW
Also, the restriction to SQL 99 is a problem, particularly with respect to UPDATE without a FROM clause.IanW

1 Answers

1
votes

I don't think this is possible since at different times keys may belong on different nodes so iteration order will depend on cluster topology.

If cache in question is small, you can use ORDER BY _key together with SQL.