\brief Capture a copy of the current counters
| 1641 | |
| 1642 | /// \brief Capture a copy of the current counters |
| 1643 | ReadStats poll() const { |
| 1644 | ReadStats stats; |
| 1645 | stats.num_messages = num_messages.load(std::memory_order_relaxed); |
| 1646 | stats.num_record_batches = num_record_batches.load(std::memory_order_relaxed); |
| 1647 | stats.num_dictionary_batches = |
| 1648 | num_dictionary_batches.load(std::memory_order_relaxed); |
| 1649 | stats.num_dictionary_deltas = num_dictionary_deltas.load(std::memory_order_relaxed); |
| 1650 | stats.num_replaced_dictionaries = |
| 1651 | num_replaced_dictionaries.load(std::memory_order_relaxed); |
| 1652 | return stats; |
| 1653 | } |
| 1654 | }; |
| 1655 | |
| 1656 | Result<FileBlock> GetRecordBatchBlock(int i) const { |