Skip to main content

Module memtable

Module memtable 

Source
Expand description

Columnar memtable: in-memory row buffer with typed column vectors.

Each column is stored as a typed vector (Vec, Vec, etc.) rather than Vec to avoid enum overhead and enable SIMD-friendly memory layout. The memtable accumulates INSERTs and flushes to a segment when the row count reaches the configured threshold.

NOT thread-safe — lives on a single Data Plane core (!Send by design in Origin, Mutex-wrapped in Lite).

Structs§

ColumnarMemtable
In-memory columnar buffer that accumulates INSERTs.
MemtableRowIter
Row iterator over a columnar memtable.

Enums§

ColumnData
A single column’s data in the memtable.
IngestValue
Borrowed value for zero-copy ingest into the columnar memtable.

Constants§

DEFAULT_FLUSH_THRESHOLD
Default flush threshold: 64K rows per memtable.
DICT_ENCODE_MAX_CARDINALITY
Maximum cardinality for automatic dictionary encoding.