Expand description
Sequential pipeline that populates the
schema::transaction_bitmap
CF.
Mirrors the tx-space half of
write_ledger_history_rows_for_checkpoint in
sui-core::rpc_index. For every transaction in the checkpoint
the pipeline:
- Visits every dimension candidate via
sui_inverted_index::for_each_transaction_dimension. - Encodes each
(dimension, value)into adimension_keyviasui_inverted_index::encode_dimension_keyand dedupes per-tx, so a transaction matching the same dimension multiple times contributes a single bit per(dim_key, bucket). - Groups
tx_seqbits by(dim_key, tx_seq / TX_BUCKET_SIZE), folding any number of transactions in the checkpoint into oneRoaringBitmapper group.
Multiple checkpoints landing in the same commit batch are
folded into the same RoaringBitmap per group via the
handler’s batch callback, so the commit path emits one
merge operand per (dim_key, bucket) regardless of how many
checkpoints contributed.
Structs§
- Row
- One pre-built bitmap for a single
(dimension_key, bucket)pair, ready to be staged as a merge operand against the CF. - Transaction
Bitmap - Pipeline marker for
transaction_bitmap.