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
Convert πFormat - Converts a batch that doesnβt have decoded primary key columns into a batch that has decoded primary key columns in flat format.
- Flat
Read Format - Helper for reading the flat SST format with projection.
- Flat
Write πFormat - Helper for writing the SST format.
FunctionsΒ§
- op_
type_ πcolumn_ index - Returns the position of the op type key column.
- 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.