iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
iceberg::ScanMetrics Class Reference

Live scan metrics collected during a table scan operation. More...

#include <scan_report.h>

Public Member Functions

ScanMetricsResult ToResult () const
 Snapshot current counter/timer values into a ScanMetricsResult.
 

Static Public Member Functions

static std::unique_ptr< ScanMetricsMake (MetricsContext &context)
 Create a ScanMetrics instance backed by the given MetricsContext.
 
static std::unique_ptr< ScanMetricsNoop ()
 Create a ScanMetrics instance with all-noop counters and timer.
 

Public Attributes

std::shared_ptr< Timertotal_planning_duration
 
std::shared_ptr< Counterresult_data_files
 
std::shared_ptr< Counterresult_delete_files
 
std::shared_ptr< Counterscanned_data_manifests
 
std::shared_ptr< Counterscanned_delete_manifests
 
std::shared_ptr< Countertotal_data_manifests
 
std::shared_ptr< Countertotal_delete_manifests
 
std::shared_ptr< Countertotal_file_size_in_bytes
 
std::shared_ptr< Countertotal_delete_file_size_in_bytes
 
std::shared_ptr< Counterskipped_data_manifests
 
std::shared_ptr< Counterskipped_delete_manifests
 
std::shared_ptr< Counterskipped_data_files
 
std::shared_ptr< Counterskipped_delete_files
 
std::shared_ptr< Counterindexed_delete_files
 
std::shared_ptr< Counterequality_delete_files
 
std::shared_ptr< Counterpositional_delete_files
 
std::shared_ptr< Counterdvs
 

Detailed Description

Live scan metrics collected during a table scan operation.

Holds named Counter and Timer instances obtained from a MetricsContext. Call Make() at the start of a scan to obtain an instrumented instance, then increment counters and start/stop the planning timer as the scan proceeds. Call ToResult() at the end to obtain the serialisable ScanMetricsResult.


The documentation for this class was generated from the following files: