I'm currently using an instance of RandomAccessFile
to manage some in-memory data, but the size of my RandomAccessFile
instance is beyond 2^64 bytes, so I cannot used methods such as seek()
and write()
because they use Long
and cannot manage an address space bigger than 2^64. So what do I do ? Is there something else I can use which supports an address space beyond 2^64 ?
EDIT: Reason for asking this question:
I have a Tree data structure which in theory can have upto 2^128 nodes, and I want to store this tree onto a file. Each node has data that's roughly 6 bytes. So I'm wondering how will I store this tree to file.