Granary_columnar.Col_storeSourceIn-memory columnar store for COLUMNSTORE tables.
Rows are stored as per-column Bigarray arrays for cache-friendly scan performance. Text columns use dictionary encoding.
create columns returns an empty store with the given schema.
columns store returns the schema that was passed to create.
insert_rows store batch appends batch to the store, transposing rows into typed column arrays.
to_row_seq store streams all rows in insertion order by reading from the typed column arrays.
encode store serializes the entire store (schema + data) to a byte string.
decode ?off schema buf deserializes a store from buf starting at offset off (default 0) using the given schema. Raises Failure on corrupt or malformed data.
dirty store returns true if the store has been mutated since the last call to mark_clean (i.e. has unpersisted changes).