Module event_bitmap

Module event_bitmap 

Source
Expand description

Sequential pipeline that populates the schema::event_bitmap CF.

Mirrors the event-space half of write_ledger_history_rows_for_checkpoint in sui-core::rpc_index. For every event in every transaction the pipeline:

  1. Visits dimension candidates via sui_inverted_index::for_each_event_dimension.
  2. Encodes the dimension key via sui_inverted_index::encode_dimension_key.
  3. Packs (tx_seq, event_idx) into the event-seq space the schema uses (pack(tx_seq, event_idx)), checks the packing doesn’t overflow the per-tx event limit (1 << EVENT_BITS) or the tx_seq ceiling (u64::MAX >> EVENT_BITS), and groups the bit into (dim_key, packed / EVENT_BUCKET_SIZE).

Structs§

EventBitmap
Pipeline marker for event_bitmap.
Row
One pre-built bitmap for a single (dimension_key, bucket) pair, ready to be staged as a merge operand against the CF.