Make the iterator method public

The `iterator` method in RedissonSet is public. It would be useful to make the RedissonMap iterator public, too, enabling iteration over hashes with millions of keys without memory issues.
pull/257/head
Matthew Caruana Galizia 9 years ago
parent 994bb2da47
commit 51f185c900

@ -286,7 +286,7 @@ public class RedissonMap<K, V> extends RedissonExpirable implements RMap<K, V> {
return commandExecutor.read(client, getName(), codec, RedisCommands.HSCAN, getName(), startPos);
}
private Iterator<Map.Entry<K, V>> iterator() {
public Iterator<Map.Entry<K, V>> iterator() {
return new Iterator<Map.Entry<K, V>>() {
private Iterator<Map.Entry<K, V>> iter;

Loading…
Cancel
Save