In large collections, the idea of navigating all keys could blow up memories. This would be a typical mapping pattern for Cassandra (but not only).
Consider moving to an Iterator and consider the users of that method to see when such large collection would be unwise.
|