Kim,
It would be very helpful if you can explain the issue in more details.
My guess is that you are trying to read compound data with structure
of {string, int} from HDF5 file into Java hashtable. Similar for writing.
Currently, there is no direct way to read/write Java hashtable from/to HDF5
files. There are a couple of ways that you can do.
A) Implement your own Java and JNI write functions that can read/write
hashtable, or
B) Use H5CompoundDS to read data from file and create the hashtable
once you have the data in memory, similar for write.
Option A) will have better performance but it will need more work. Option B)
does not need much work but it requires more memory and extra data
conversion.
Thanks
--pc
On 7/18/2011 1:21 PM, kim nguyen wrote:
I am totally newbie with HDF.
I want to use HDF5 to serialize a hashTable. This hashTable is to
large to be managed in memory and i want use HDF for read performance.
The hash table have a String for key and a object (1 string and 2
int) for value.
Have you a java sample code for create this structure, write data and read data.
Best regards
kim
France
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org