dcsimg
Working with very big Collections
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, October 7, 2001 03:25 AM

I sometimes want to work with a very large collection, but I do not want it to consume a lot of memory.


I was thinking that it would be handy to have collections that are backed up by a file.
E.g. A List implementation where the items are stored in a file (and only a limited portion of it is stored in memory for effeciency)


Are such implementations avaiable?

Re: Working with very big Collections

Posted By:   Luigi_Viggiano  
Posted On:   Sunday, October 7, 2001 08:59 AM

In my knowledge, there's no "smart" collection implementation as you are asking for. It's similar to a resultset. So you have to provide your own implementation. If you are retrieving data from a database I suggest you that your collection implementation as a wrapper of a resultset (maybe reading buffer of records at time to minimize db accesses). For elements read from a file you have to wrap a buffered Reader.
About | Sitemap | Contact