diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-03-09 19:39:20 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-03-09 19:39:20 (GMT) |
commit | ec169e7bc29339f958174e1e714cd7299b6ccdb7 (patch) | |
tree | fecc297c5bd4b3dc56aabd664705f9a6c4983ca1 /src/H5B2private.h | |
parent | a46b559c35e84af1724681fa3afe122c22ce783c (diff) | |
download | hdf5-ec169e7bc29339f958174e1e714cd7299b6ccdb7.zip hdf5-ec169e7bc29339f958174e1e714cd7299b6ccdb7.tar.gz hdf5-ec169e7bc29339f958174e1e714cd7299b6ccdb7.tar.bz2 |
[svn-r10172] Purpose:
Bug fix & New feature
Description:
Correct some situations where a write lock on the data in the metadata
cache was requested, but only a read lock is necessary.
Add routine to find nearest neighbor record < or > to a query key.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Solaris 2.9 (shanti)
Diffstat (limited to 'src/H5B2private.h')
-rw-r--r-- | src/H5B2private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/H5B2private.h b/src/H5B2private.h index 358962e..7598c1f 100644 --- a/src/H5B2private.h +++ b/src/H5B2private.h @@ -62,6 +62,12 @@ typedef enum H5B2_subid_t { H5B2_NUM_BTREE_ID /* Number of B-tree IDs (must be last) */ } H5B2_subid_t; +/* Comparisons for H5B2_neighbor() call */ +typedef enum H5B2_compare_t { + H5B2_COMPARE_LESS, /* Records with keys less than query value */ + H5B2_COMPARE_GREATER /* Records with keys greater than query value */ +} H5B2_compare_t; + /* * Each class of object that can be pointed to by a B-link tree has a * variable of this type that contains class variables and methods. @@ -102,6 +108,9 @@ H5_DLL herr_t H5B2_find(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, haddr_t addr, void *udata, H5B2_found_t op, void *op_data); H5_DLL herr_t H5B2_index(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, haddr_t addr, hsize_t idx, H5B2_found_t op, void *op_data); +H5_DLL herr_t H5B2_neighbor(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, + haddr_t addr, H5B2_compare_t comp, void *udata, H5B2_found_t op, + void *op_data); H5_DLL herr_t H5B2_remove(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, haddr_t addr, void *udata); H5_DLL herr_t H5B2_get_nrec(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, |