public class MetricsUtil
extends java.lang.Object
Modifier and Type | Method and 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.
|
public static java.util.Map<java.lang.Integer,java.lang.Long> createNanValueCounts(java.util.stream.Stream<FieldMetrics<?>> fieldMetrics, MetricsConfig metricsConfig, Schema inputSchema)
public static MetricsModes.MetricsMode metricsMode(Schema inputSchema, MetricsConfig metricsConfig, int fieldId)