I am iterating over large data set using thin client and i only need list of keys from the Ignite cache Is there a way to do it?
The value are very heavy as they are actual data files and key is UUID.
If you enable SQL support for your table, you can use query using the "virtual" column _key
:
try (QueryCursor<List<?>> cur = cache2.query(new SqlFieldsQuery("select _key from table"))) {
for (List<?> r : cur) {
Long key = (Long)r.get(0);
}
}