Slideshow:
|
|
Records:
field f
---------+--------+------
Record 1: ..... 5 ...
Record 2: ..... 7 ...
Record 3: ..... 5 ...
Record 4: ..... 8 ...
Record 5: ..... 7 ...
F = {5, 7, 8} (= current set of values in field f)
|
|
|
(age, salary (in $1,000)) 1(25,60) 2(45,60) 3(50,75) 4(50,100) 5(50,120) 6(70,110) 7(85,140) 8(30,260) 9(25,400) 10(45,350) 11(50,275) 12(60,260) |
Value 123456789012
------------------------------
25 100000001000
30 000000010000
45 010000000100
50 001110000010
60 000000000001
70 000001000000
85 000000100000
|
The bitmap index on salary:
Value 123456789012
-------------------------------
60 110000000000
75 001000000000
100 000100000000
110 000001000000
120 000010000000
140 000000100000
260 000000010001
275 000000000010
350 000000000100
400 000000001000
|
(The bit index for 2 records are high lighted in red)