Expand description
Format to store in parquet.
It can store both encoded primary key and raw key columns.
We store two additional internal columns at last:
__primary_key
, the encoded primary key of the row (tags). Type: dictionary(uint32, binary)__sequence
, the sequence number of a row. Type: uint64__op_type
, the op type of the row. Type: uint8
The format is
primary key columns, field columns, time index, encoded primary key, __sequence, __op_type.
It stores field columns in the same order as [RegionMetadata::field_columns()](store_api::metadata::RegionMetadata::field_columns())
and stores primary key columns in the same order as [RegionMetadata::primary_key].
Structsยง
- Flat
Read Format - Helper for reading the flat SST format with projection.
- Flat
Write ๐Format - Helper for writing the SST format.
Functionsยง
- primary_
key_ ๐column_ index - Returns the position of the primary key column.
- sequence_
column_ ๐index - Returns the position of the sequence column.
- sst_
column_ ๐id_ indices - Returns a map that the key is the column id and the value is the column position in the SST. It only supports SSTs with raw primary key columns.
- time_
index_ ๐column_ index - Returns the position of the time index column.