Hi,

The MVStore is mainly meant to store data on disk. Off-heap memory (in
which case the data is stored in a ByteBuffer that was created using
ByteBuffer.allocateDirect) can be used in two places: (a) as a large file
cache, and (b) as the main 'storage' (using an in-memory file system). Both
is possible, I guess (b) is easier to implement (a new file system
implementation).

I'm sorry, I thought it was about making Map<byte[],byte[]>
>

If the application wants to deal with byte arrays then that's possible of
course, but in most cases the application (and the database engine) wants
to deal with 'real' Java objects to avoid serialization / deserialization
for each operation. The database engine will probably use Map<Long, Record>
or Map<Long, Object[]> to store records. It is also possible to use
Map<Object, ByteBuffer> to avoid copying data, but I guess that's not the
normal use case.

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to