Skip to main content

decode_primary_keys

Function decode_primary_keys 

Source
pub fn decode_primary_keys(
    codec: &dyn PrimaryKeyCodec,
    batch: &RecordBatch,
) -> Result<DecodedPrimaryKeys>
Expand description

Decodes primary keys from a batch and returns decoded primary key information.

The batch must contain a primary key column at the expected index. Primary keys stay encoded: tag values are extracted lazily per column in DecodedPrimaryKeys::get_tag_column without decoding every label. The codec must describe the source key’s field order and types.