ITPub博客

首页 > Linux操作系统 > Linux操作系统 > B-tree and Bitmap Index

B-tree and Bitmap Index

原创 Linux操作系统 作者:kris3106 时间:2008-05-30 09:41:38 0 删除 编辑
Oracle has 2 kinds of Index: B-tree index and Bitmap Index.
B-tree index is commonly used index, which is created using CREATE INDEX command.

B-tree index structure:
  • Root: Pointer to branch node
  • Branch: Pointer to Leaf node. The distinct value of index columns are sorted and divided into different groups. Each branch is mapped to a group of data.
  • Leaf: Each Leaf contains the rowid of the records it refers to. Leaf node are linked together in both directions, allowing ascending or descending search. Also leaf nodes can be sorted by ascending or descending.
Bitmap index is some special index, which is created using CREATE BITMAP INDEX command.
Bitmap Index structure:
  • Root: Pointer to branch node
  • Branch: Pointer to Leaf node. Branch contains the start rowid and end rowid of the leaf blocks it refers to. (It is different from B-tree here. Here is start rowid and end rowid.)
  • Leaf: Leaf is a bitmap. Each bit in the bitmap corresponds to a row in the table. You can think the bitmap like a table with RowID as Row Header and Values as column header. When the row has the value of the column header. It is marked to 1, else 0.
  • 来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/563971/viewspace-324393/ ,如需转载,请注明出处,否则将追究法律责任。

    上一篇: V$BH
    请登录后发表评论 登录
    全部评论

    注册时间:2008-04-07

    • 博文量
      93
    • 访问量
      212697