Getting the file byte-offset for selection

I'm working on getting Hadoop working over HDF5 files and, as part of that effort, I need to translate from points in a dataspace into offsets in the underlying file. I think what I want is something like H5S_point_offset, but public facing. Actually, ideally I'd like something like H5S_point_get_seq_list, but I don't need the lengths for the regions selected (it should all be points, so length 1). Is there a supported way of doing this that I'm not seeing as I look over the documentation & example code that I can find?

Regards,
-Joe Buck

When I did this a few years back I read (H5Dread) a value of out a
dataset, then watched the output with strace to get the offset. Not
pretty, but it worked for what I wanted to do.

Quincey said something more hdf5-native would be interesting, pending
funding to work on it.

==rob

ยทยทยท

On Sun, Feb 12, 2012 at 11:28:25PM -0800, Joe Buck wrote:

I'm working on getting Hadoop working over HDF5 files and, as part
of that effort, I need to translate from points in a dataspace into
offsets in the underlying file. I think what I want is something
like H5S_point_offset, but public facing. Actually, ideally I'd like
something like H5S_point_get_seq_list, but I don't need the lengths
for the regions selected (it should all be points, so length 1). Is
there a supported way of doing this that I'm not seeing as I look
over the documentation & example code that I can find?

--
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA