⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bt_prefix.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: bt_prefix.so,v 10.22 2004/02/21 15:50:51 bostic Exp $])m4_ref_title(Access Methods,    Btree prefix comparison,, am_conf/bt_compare, am_conf/bt_minkey)m4_p([dnlThe m4_db Btree implementation maximizes the number of keys that can bestored on an internal page by storing only as many bytes of each key asare necessary to distinguish it from adjacent keys.  The prefixcomparison routine is what determines this minimum number of bytes (thatis, the length of the unique prefix), that must be stored.  A prefixcomparison function for the Btree can be specified by callingm4_ref(dbh_set_bt_prefix).])m4_p([dnlThe prefix comparison routine must be compatible with the overallcomparison function of the Btree, since what distinguishes any two keysdepends entirely on the function used to compare them.  This means thatif a prefix comparison routine is specified by the application, acompatible overall comparison routine must also have been specified.])m4_p([dnlPrefix comparison routines are passed pointers to keys as arguments.The keys are represented as m4_ref(Dbt) structures.  The only fieldsthe routines may examine in the m4_ref(Dbt) structures are m4_arg(data)and m4_arg(size) fields.])m4_p([dnlThe prefix comparison function must return the number of bytes necessaryto distinguish the two keys.  If the keys are identical (equal and equalin length), the length should be returned.  If the keys are equal up tothe smaller of the two lengths, then the length of the smaller key plus1 should be returned.])m4_p([dnlAn example prefix comparison routine follows:])include(ref/am_conf/bt_prefix.cs)m4_p([dnlThe usefulness of this functionality is data-dependent, but in some datasets can produce significantly reduced tree sizes and faster search times.])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -