Module transaction_bitmap

Module transaction_bitmap 

Source
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:

  1. Visits every dimension candidate via sui_inverted_index::for_each_transaction_dimension.
  2. Encodes each (dimension, value) into a dimension_key via sui_inverted_index::encode_dimension_key and dedupes per-tx, so a transaction matching the same dimension multiple times contributes a single bit per (dim_key, bucket).
  3. Groups tx_seq bits by (dim_key, tx_seq / TX_BUCKET_SIZE), folding any number of transactions in the checkpoint into one RoaringBitmap per 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.
TransactionBitmap
Pipeline marker for transaction_bitmap.