mirror of
https://github.com/fumiama/fumidb.git
synced 2026-06-05 08:40:30 +08:00
更正README
This commit is contained in:
@@ -13,15 +13,15 @@
|
||||
├───────────────────┴───────────────────┤
|
||||
│ 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 │
|
||||
├───────────────────┴───────────────────┤
|
||||
│ ...... ...... ...... │
|
||||
├───────────────────────────────────────┤
|
||||
│ some possible padding to fit 4096Byte │
|
||||
│ some possible padding to fit 4k │
|
||||
├───────────────────────────────────────┤
|
||||
│ data blocks ... │
|
||||
└───────────────────────────────────────┘
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
├───────────────────────────────────────────────────────────────────────────────────────┤
|
||||
│ 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 second foreign key ( if available ) │
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
### 类型列表
|
||||
| 类型代号 | 类型 | 存储方式 |
|
||||
| --- | --- | --- |
|
||||
| 6 | string | 下一个哈希相同的数据项的指针+该长度的数据(字节数组) |
|
||||
| 6 | string | 下一个哈希相同的数据项的指针+uint32长度+该长度的数据(字节数组) |
|
||||
|
||||
## 二进制数据块
|
||||
> 二进制数据块为定长(不超过uint64)的不参与索引的字节数组。
|
||||
### 类型列表
|
||||
| 类型代号 | 类型 | 存储方式 |
|
||||
| --- | --- | --- |
|
||||
| 7 | binary | 直接存储数据(字节数组) |
|
||||
| 7 | binary | uint64长度+直接存储的数据(字节数组) |
|
||||
|
||||
## 类型修饰符
|
||||
> 类型修饰符占据类型代号的高2位,通过或运算与基础代号结合
|
||||
|
||||
Reference in New Issue
Block a user