Package org.apache.iceberg
Class MetricsConfig
java.lang.Object
org.apache.iceberg.MetricsConfig
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncolumnMode(int id) columnMode(String columnAlias) static MetricsConfigstatic MetricsConfigCreates a metrics config from a table.static MetricsConfigGenerate a MetricsConfig for all columns based on overrides, schema, and sort order.static MetricsConfigfromProperties(Map<String, String> props) Deprecated.static MetricsConfigstatic voidValidates metrics config properties with the given schema.voidvalidateReferencedColumns(Schema schema)
-
Method Details
-
getDefault
-
forPositionDelete
-
fromProperties
Deprecated.useforTable(Table). Will be removed in 1.13.0Creates a metrics config from table configuration.- Parameters:
props- table configuration
-
validate
Validates metrics config properties with the given schema.- Parameters:
props- table propertiesschema- table schema
-
forTable
Creates a metrics config from a table.- Parameters:
table- iceberg table- Returns:
- a metrics config for the given table
-
metricsFieldIds
-
columnMode
-
columnMode
-
validateReferencedColumns
-
from
Generate a MetricsConfig for all columns based on overrides, schema, and sort order.- Parameters:
props- will be read for metrics overrides (write.metadata.metrics.column.*) and default (write.metadata.metrics.default)schema- table schemaorder- sort order columns, will be promoted to truncate(16)- Returns:
- metrics configuration
-
forTable(Table).