storm-gen icon indicating copy to clipboard operation
storm-gen copied to clipboard

Provide support for Iterator<T>

Open turbomanage opened this issue 10 years ago • 1 comments

From https://code.google.com/p/storm-gen/issues/detail?id=43

Proivde support for Iterator<T> in DAO.

Right now, client code has to do dao.listAll(); to show the table records to show in a list.

This reads all table records in stores in memory. For large tables, this is not practical.

There should be a way to get Iterator<T> where T is POJO, and read the data as they are accessed.

turbomanage avatar Mar 19 '14 00:03 turbomanage

See perhaps https://github.com/venmo/cursor-utils

turbomanage avatar Jun 16 '14 16:06 turbomanage