1
0
mirror of https://github.com/fumiama/fumidb.git synced 2026-06-10 21:24:12 +08:00

更正README

This commit is contained in:
源文雨
2022-05-01 23:33:00 +08:00
parent 6defee6974
commit 0196070fe0
3 changed files with 5 additions and 7 deletions

View File

@@ -13,15 +13,15 @@
├───────────────────┴───────────────────┤ ├───────────────────┴───────────────────┤
│ possible other header data │ │ possible other header data │
├───────────────────────────────────────┤ ├───────────────────────────────────────┤
...... ...... ...... possible other data (such as index)
├───────────────────────────────────────┤ ├───────────────────────────────────────┤
│ some possible padding to fit 4096Byte some possible padding to fit 4k
├───────────────────┬───────────────────┤ ├───────────────────┬───────────────────┤
│ ptr of next table │ first table head │ │ ptr of next table │ first table head │
├───────────────────┴───────────────────┤ ├───────────────────┴───────────────────┤
│ ...... ...... ...... │ │ ...... ...... ...... │
├───────────────────────────────────────┤ ├───────────────────────────────────────┤
│ some possible padding to fit 4096Byte some possible padding to fit 4k
├───────────────────────────────────────┤ ├───────────────────────────────────────┤
│ data blocks ... │ │ data blocks ... │
└───────────────────────────────────────┘ └───────────────────────────────────────┘

View File

@@ -19,8 +19,6 @@
├───────────────────────────────────────────────────────────────────────────────────────┤ ├───────────────────────────────────────────────────────────────────────────────────────┤
│ index pointer of column No.N ( if it's zero, there is no index for this column ) │ │ index pointer of column No.N ( if it's zero, there is no index for this column ) │
├───────────────────────────────────────────────────────────────────────────────────────┤ ├───────────────────────────────────────────────────────────────────────────────────────┤
│ index pointer of first deleted block ( if it's zero, there is no deleted block ) │
├───────────────────────────────────────────────────────────────────────────────────────┤
│ index pointer of first foreign key ( if available ) │ │ index pointer of first foreign key ( if available ) │
├───────────────────────────────────────────────────────────────────────────────────────┤ ├───────────────────────────────────────────────────────────────────────────────────────┤
│ index pointer of second foreign key ( if available ) │ │ index pointer of second foreign key ( if available ) │

View File

@@ -19,14 +19,14 @@
### 类型列表 ### 类型列表
| 类型代号 | 类型 | 存储方式 | | 类型代号 | 类型 | 存储方式 |
| --- | --- | --- | | --- | --- | --- |
| 6 | string | 下一个哈希相同的数据项的指针+该长度的数据(字节数组) | | 6 | string | 下一个哈希相同的数据项的指针+uint32长度+该长度的数据(字节数组) |
## 二进制数据块 ## 二进制数据块
> 二进制数据块为定长不超过uint64的不参与索引的字节数组。 > 二进制数据块为定长不超过uint64的不参与索引的字节数组。
### 类型列表 ### 类型列表
| 类型代号 | 类型 | 存储方式 | | 类型代号 | 类型 | 存储方式 |
| --- | --- | --- | | --- | --- | --- |
| 7 | binary | 直接存储数据(字节数组) | | 7 | binary | uint64长度+直接存储数据(字节数组) |
## 类型修饰符 ## 类型修饰符
> 类型修饰符占据类型代号的高2位通过或运算与基础代号结合 > 类型修饰符占据类型代号的高2位通过或运算与基础代号结合