知识卡片
点查与叶页范围查
点查从根按分隔键下降到目标叶,找等值后即可结束;缺失时的前驱或插入位置可用来确定范围起点。范围查先用同一路径定位首个合格键,再按键顺序继续,通过叶兄弟指针跨页,遇到超出上界的键就停止。双向兄弟链接能支持反向扫描。
参见 [[分隔键的半开区间]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 2. B-Tree Basics B-Tree Lookup Algorithm · 查看原书依据
During the point query, the search is done after finding or failing to find the searched key. During the range scan, iteration starts from the closest found key-value pair and continues by following sibling pointers until
参考来源
- 位置:《Database Internals》Chapter 2. B-Tree Basics(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch02.html#b_tree_lookup_algorithm,段 106)
- 结论依据:原文对照终止规则,并说明范围迭代沿兄弟指针走到边界。
- 原始内容:During the point query, the search is done after finding or failing to find the searched key. During the range scan, iteration starts from the closest found key-value pair and continues by following sibling pointers until