Dataset unique identifier

Hi,

Lately a user of PyTables (a library based on HDF5) has shown interest
in implementing links in it. After a brief analysis, we realized that,
in order to avoid inconsistencies in PyTables' object tree cache
between several possible different (hard) reference to a dataset, we
would need an identifier that would be provided by HDF5 so that it
would be the same across all the links to the actual data in disk (kind
of a 'inode' in a filesystem).

Is there a way to get such a unique identifier?

Thanks!

···

--

0,0< Francesc Altet http://www.carabos.com/

V V Cárabos Coop. V. Enjoy Data
"-"

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

Hi Francesc,

Hi,

Lately a user of PyTables (a library based on HDF5) has shown interest
in implementing links in it. After a brief analysis, we realized that,
in order to avoid inconsistencies in PyTables' object tree cache
between several possible different (hard) reference to a dataset, we
would need an identifier that would be provided by HDF5 so that it
would be the same across all the links to the actual data in disk (kind
of a 'inode' in a filesystem).

Is there a way to get such a unique identifier?

  Yes, you can use the 'addr' field from the H5O_info_t struct for this. Take a look at the new H5O* and H5L* routines in the 1.8.0 release for more goodies in this area.

  Quincey

···

On Jan 31, 2008, at 2:02 PM, Francesc Altet wrote:

Thanks!

--

0,0< Francesc Altet http://www.carabos.com/

V V Cárabos Coop. V. Enjoy Data
"-"

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

Hi Francesc,

please look at H5Gget_objinfo in 1.6 and at H5Oget_info and H5Lget _info in 1.8
objno (addr) is what you probably looking for (address of the object in the file)

Elena

···

At 9:02 PM +0100 1/31/08, Francesc Altet wrote:

Hi,

Lately a user of PyTables (a library based on HDF5) has shown interest
in implementing links in it. After a brief analysis, we realized that,
in order to avoid inconsistencies in PyTables' object tree cache
between several possible different (hard) reference to a dataset, we
would need an identifier that would be provided by HDF5 so that it
would be the same across all the links to the actual data in disk (kind
of a 'inode' in a filesystem).

Is there a way to get such a unique identifier?

Thanks!

--

0,0< Francesc Altet http://www.carabos.com/

V V Cárabos Coop. V. Enjoy Data
"-"

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

--

------------------------------------------------------------
Elena Pourmal
The HDF Group
1901 So First ST.
Suite C-2
Champaign, IL 61820

epourmal@hdfgroup.org
(217)333-0238 (office)
(217)333-9049 (fax)
------------------------------------------------------------

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

Hi Elena, Quincey,

Yes, that was what we were looking for.

Thank you very much!

A Thursday 31 January 2008, Elena Pourmal escrigué:

···

Hi Francesc,

please look at H5Gget_objinfo in 1.6 and at H5Oget_info and H5Lget
_info in 1.8 objno (addr) is what you probably looking for
(address of the object in the file)

Elena

At 9:02 PM +0100 1/31/08, Francesc Altet wrote:
>Hi,
>
>Lately a user of PyTables (a library based on HDF5) has shown
> interest in implementing links in it. After a brief analysis, we
> realized that, in order to avoid inconsistencies in PyTables'
> object tree cache between several possible different (hard)
> reference to a dataset, we would need an identifier that would be
> provided by HDF5 so that it would be the same across all the links
> to the actual data in disk (kind of a 'inode' in a filesystem).
>
>Is there a way to get such a unique identifier?
>
>Thanks!
>
>--
>
>>0,0< Francesc Altet http://www.carabos.com/
>
>V V Cárabos Coop. V. Enjoy Data
> "-"
>
>--------------------------------------------------------------------
>-- This mailing list is for HDF software users discussion.
>To subscribe to this list, send a message to
> hdf-forum-subscribe@hdfgroup.org. To unsubscribe, send a message to
> hdf-forum-unsubscribe@hdfgroup.org.

--

0,0< Francesc Altet http://www.carabos.com/

V V Cárabos Coop. V. Enjoy Data
"-"

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.