Package org.apache.iceberg
Class MetricsUtil
- java.lang.Object
-
- org.apache.iceberg.MetricsUtil
-
public class MetricsUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.Integer,java.lang.Long>
createNanValueCounts(java.util.stream.Stream<FieldMetrics<?>> fieldMetrics, MetricsConfig metricsConfig, Schema inputSchema)
Construct mapping relationship between column id to NaN value counts from input metrics and metrics config.static MetricsModes.MetricsMode
metricsMode(Schema inputSchema, MetricsConfig metricsConfig, int fieldId)
Extract MetricsMode for the given field id from metrics config.
-
-
-
Method Detail
-
createNanValueCounts
public static java.util.Map<java.lang.Integer,java.lang.Long> createNanValueCounts(java.util.stream.Stream<FieldMetrics<?>> fieldMetrics, MetricsConfig metricsConfig, Schema inputSchema)
Construct mapping relationship between column id to NaN value counts from input metrics and metrics config.
-
metricsMode
public static MetricsModes.MetricsMode metricsMode(Schema inputSchema, MetricsConfig metricsConfig, int fieldId)
Extract MetricsMode for the given field id from metrics config.
-
-