@Internal public class StatisticsValidator extends Object implements DescriptorValidator
Statistics.| Modifier and Type | Field and Description |
|---|---|
static String |
AVG_LENGTH |
static String |
DISTINCT_COUNT |
static String |
MAX_LENGTH |
static String |
MAX_VALUE |
static String |
MIN_VALUE |
static String |
NAME |
static String |
NULL_COUNT |
static String |
STATISTICS_COLUMNS |
static String |
STATISTICS_PROPERTY_VERSION |
static String |
STATISTICS_ROW_COUNT |
| Constructor and Description |
|---|
StatisticsValidator() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
normalizeColumnStats(ColumnStats columnStats) |
static Map<String,ColumnStats> |
readColumnStats(DescriptorProperties properties,
String key) |
void |
validate(DescriptorProperties properties)
Performs basic validation such as completeness tests.
|
static void |
validateColumnStats(DescriptorProperties properties,
String key) |
public static final String STATISTICS_PROPERTY_VERSION
public static final String STATISTICS_ROW_COUNT
public static final String STATISTICS_COLUMNS
public static final String NAME
public static final String DISTINCT_COUNT
public static final String NULL_COUNT
public static final String AVG_LENGTH
public static final String MAX_LENGTH
public static final String MAX_VALUE
public static final String MIN_VALUE
public void validate(DescriptorProperties properties)
DescriptorValidatorvalidate in interface DescriptorValidatorpublic static Map<String,String> normalizeColumnStats(ColumnStats columnStats)
public static void validateColumnStats(DescriptorProperties properties, String key)
public static Map<String,ColumnStats> readColumnStats(DescriptorProperties properties, String key)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.