Configuration for collecting column metrics for an Iceberg table.
More...
#include <metrics_config.h>
|
|
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.
|
| |
Configuration for collecting column metrics for an Iceberg table.
◆ ColumnMode()
| MetricsMode iceberg::MetricsConfig::ColumnMode |
( |
std::string_view |
column_name | ) |
const |
Get the metrics mode for a specific column.
- Parameters
-
| column_name | The 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
-
| updates | The updates to verify |
| schema | The schema to verify against |
- Returns
- OK if all referenced columns are valid
The documentation for this class was generated from the following files: