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

Configuration for collecting column metrics for an Iceberg table. More...

#include <metrics_config.h>

Public Member Functions

MetricsMode ColumnMode (std::string_view column_name) const
 Get the metrics mode for a specific column.
 

Static Public Member Functions

static const std::shared_ptr< MetricsConfig > & Default ()
 Get the default metrics config.
 
static Result< std::shared_ptr< MetricsConfig > > Make (const Table &table)
 Creates a metrics config from a table.
 
static Result< std::unordered_set< int32_t > > LimitFieldIds (const Schema &schema, int32_t limit)
 Get limit num of primitive field ids from schema.
 
static Status VerifyReferencedColumns (const std::unordered_map< std::string, std::string > &updates, const Schema &schema)
 Verify that all referenced columns are valid.
 

Detailed Description

Configuration for collecting column metrics for an Iceberg table.

Member Function Documentation

◆ ColumnMode()

MetricsMode iceberg::MetricsConfig::ColumnMode ( std::string_view  column_name) const

Get the metrics mode for a specific column.

Parameters
column_nameThe full name of the column
Returns
The metrics mode for the column

◆ VerifyReferencedColumns()

Status iceberg::MetricsConfig::VerifyReferencedColumns ( const std::unordered_map< std::string, std::string > &  updates,
const Schema schema 
)
static

Verify that all referenced columns are valid.

Parameters
updatesThe updates to verify
schemaThe schema to verify against
Returns
OK if all referenced columns are valid

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