This sounds like a really good project proposal
actually for a Collections based file mapping library
or a large ArrayList...obviously unable to have a
toArray method except for sections of the file. 
Anyways, I don't know of any direct wrappers for this,
but you can use java.nio.FileChannel obtaining it from
a java.io.RandomAccess file and then using the map
method to map regions of the file into memory.  This
would allow you to read and write bytes, floats,
doubles, ints, arrays of all etc to this mapped region
making a larger area obviously than allowed memory
without using much or hardly any depending on the
needed efficiency concept.  You could make use of this
to store objects as well depending on how you are
storing them.  You can store them as arrays of bytes
and read and write them out to the mapped area giving
you more space to work....all conceptual of course. 
Might help you though.

Wade

--- Sergey Khenkin <[EMAIL PROTECTED]> wrote:

> Hi All,
> 
> Does anybody know of a mean to work with very large
> arrays that don't
> fit in memory and are cahced to disk when necessary?
> Is there a proper type of collection in Commons
> Collection?
> Thanks.
> 
> -- 
> Best regards,
> Sergey Khenkin                        
> mailto:[EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to