1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Cell-level encoding for Data.db
//!
//! Encodes individual cells within a row:
//! - Cell header (flags, timestamp, TTL)
//! - Cell value (type-specific encoding)
//! - Tombstone markers (deletion timestamp)
//!
//! Cell format (OA format):
//! - Flags byte (deletion, expiry, has_ttl, etc.)
//! - Delta-encoded timestamp (VInt)
//! - Optional TTL (VInt)
//! - Optional deletion time (VInt)
//! - Value bytes (type-specific)
//!
//! TODO: Implementation in M5.0-15 (Issue #373)
//! - Cell header encoding
//! - Delta encoding (uses Statistics.db baseline)
//! - TTL and deletion time encoding
//! - Coordination with TypeSerializer
/// Cell encoder
///
/// TODO: Implementation in M5.0-15