ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandr Shapkin <lexw...@gmail.com>
Subject RE: Iterator for keys only ?
Date Wed, 11 Sep 2019 13:07:51 GMT
Hello!

You can try to use SqlFieldsQuery with “select _key from [CacheTable]” for that.

From: Mikael
Sent: Wednesday, September 11, 2019 3:47 PM
To: user@ignite.apache.org
Subject: Iterator for keys only ?

Hi!

What is the best way to iterate over the keys only from a cache ? I 
don't want the values because these are long text strings so will slow 
down the iterator a lot.

Pretty much the Ignite way of doing map.keySet().iterator();

Mikael




Mime
View raw message