2I/Berkeley DB: DbInfo::set_compare[P

DbInfo::set_compare





#include <db_cxx.h>

5typedef int (*compare_fcn)(const DBT *, const DBT *);&void DbInfo::set_compare(compare_fcn);





Description

0Set the duplicate data item comparison function.DThis comparison function must return an integer less than, equal to,Bor greater than zero if the first key argument is considered to beJrespectively less than, equal to, or greater than the second key argument.EThe same comparison method must be used on a given tree every time it is opened.

iThe data and size fields of the Dbt are the only<fields that may be used for the purposes of this comparison.



Class

4DbInfo



See Also

NDbInfo::set_bt_compare,LDbInfo::set_bt_maxkey,LDbInfo::set_bt_minkey,LDbInfo::set_bt_prefix,LDbInfo::set_cachesize,DbInfo::set_compare,DDbInfo::set_flags,LDbInfo::set_h_ffactor,FDbInfo::set_h_hash,HDbInfo::set_h_nelem,FDbInfo::set_lorder,FDbInfo::set_malloc,JDbInfo::set_pagesize,JDbInfo::set_re_delim,FDbInfo::set_re_len,EDbInfo::set_re_padandLDbInfo::set_re_source.
ÿÿ