Expand description
SSTable - Sorted String Table format and I/O
SSTables are immutable on-disk files that store key-value pairs in sorted order. They are the primary on-disk storage format for LSM-tree databases.
§File Format
+------------------+
| Data Blocks | <- Key-value pairs grouped in blocks
+------------------+
| Index Block | <- Sparse index pointing to data blocks
+------------------+
| Footer | <- Index offset + magic number + CRC
+------------------+Structs§
- Index
Entry - Index entry pointing to a data block
- SSTable
Entry - A single entry in an SSTable
- SSTable
Footer - SSTable footer containing metadata
- SSTable
Header - File header written at the start of SSTable files (v1.0+)
- SSTable
Iterator - Iterator over SSTable entries
- SSTable
Meta - SSTable metadata (in-memory representation)
- SSTable
Reader - SSTable reader - reads from existing SSTable files
- SSTable
Writer - SSTable writer - creates new SSTable files
Functions§
- delete_
sstable - Delete an SSTable file