1
0
mirror of https://github.com/fumiama/fumidb.git synced 2026-06-13 06:50:26 +08:00

add types

This commit is contained in:
源文雨
2022-05-01 21:16:17 +08:00
parent eda10fba91
commit 67b9176615
17 changed files with 310 additions and 26 deletions

View File

@@ -10,6 +10,7 @@
│ ptr 000 │ ptr 001 │ ptr ... │ ptr 255 │
└─────────┴─────────┴─────────┴─────────┘
```
特别地,当值可重复时,索引指向的是一个链表的头,详见[types](/api/types.md#数字)。
## int16
> 查找速度为
> - 无该表项O(1)
@@ -39,7 +40,7 @@
│next ptr│ ptr000 │ ptr... │ ptr255 │
└────────┴────────┴────────┴────────┘
```
特别地,当值可重复时,索引指向的是一个链表的头,详见[types](/api/types.md#数字)。
## int32/float
使用B+树建立索引,每个节点大小为`4096`字节,最多可有`n=341`个扇出,`340`个值;最少则有`170`个值(根节点不遵守最少值规则)。
> 下面每格4字节