Package org.apache.iceberg
Class MetricsConfig
java.lang.Object
org.apache.iceberg.MetricsConfig
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncolumnMode(String columnAlias) static MetricsConfigstatic MetricsConfigforPositionDelete(Table table) Deprecated.This method is deprecated as of version 1.11.0 and will be removed in 1.12.0.static 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.useforTable(Table).static MetricsConfigvoidvalidateReferencedColumns(Schema schema)
-
Method Details
-
getDefault
-
forPositionDelete
-
fromProperties
Deprecated.useforTable(Table). Will be removed in 2.0.0Creates a metrics config from table configuration.- Parameters:
props- table configuration
-
forTable
Creates a metrics config from a table.- Parameters:
table- iceberg table
-
forPositionDelete
Deprecated.This method is deprecated as of version 1.11.0 and will be removed in 1.12.0. Position deletes that include row data are no longer supported. UseforPositionDelete()instead.Creates a metrics config for a position delete file.- Parameters:
table- an Iceberg table
-
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
-
validateReferencedColumns
-
columnMode
-