public class ColumnStatisticsKind<T> extends BaseStatisticsKind<T> implements CollectableColumnStatisticsKind<T>
CollectableColumnStatisticsKind
which contain base
column statistics kinds with implemented mergeStatistics()
method.Modifier and Type | Field and Description |
---|---|
static ColumnStatisticsKind<?> |
AVG_WIDTH
Column statistics kind which is the width of the specific column.
|
static ColumnStatisticsKind<Histogram> |
HISTOGRAM
Column statistics kind which is the histogram of the specific column.
|
static ColumnStatisticsKind<Object> |
MAX_VALUE
Column statistics kind which represents max value of the specific column.
|
static ColumnStatisticsKind<Object> |
MIN_VALUE
Column statistics kind which represents min value of the specific column.
|
static ColumnStatisticsKind<Double> |
NDV
Column statistics kind which represents number of distinct values for the specific column.
|
static ColumnStatisticsKind<Double> |
NON_NULL_COUNT
Column statistics kind which represents estimated number of non-null values for the specific column.
|
static ColumnStatisticsKind<Long> |
NON_NULL_VALUES_COUNT
Column statistics kind which represents exact number of non-null values for the specific column.
|
static ColumnStatisticsKind<Long> |
NULLS_COUNT
Column statistics kind which represents nulls count for the specific column.
|
static ColumnStatisticsKind<Double> |
ROWCOUNT
Column statistics kind which represents total row count for the specific column.
|
exact, statisticKey
Modifier and Type | Method and Description |
---|---|
T |
getFrom(ColumnStatistics<?> metadata)
Returns value which corresponds to this statistic kind,
obtained from specified
BaseMetadata . |
<V> V |
getValueStatistic(ColumnStatistics<V> metadata) |
T |
mergeStatistics(List<? extends ColumnStatistics<?>> statistics)
Returns column statistics value received by collecting specified
ColumnStatistics . |
equals, getName, hashCode, isExact, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName, isExact
public static final ColumnStatisticsKind<Long> NULLS_COUNT
public static final ColumnStatisticsKind<Object> MIN_VALUE
public static final ColumnStatisticsKind<Object> MAX_VALUE
public static final ColumnStatisticsKind<Long> NON_NULL_VALUES_COUNT
public static final ColumnStatisticsKind<Double> NON_NULL_COUNT
public static final ColumnStatisticsKind<Double> ROWCOUNT
public static final ColumnStatisticsKind<Double> NDV
public static final ColumnStatisticsKind<?> AVG_WIDTH
public static final ColumnStatisticsKind<Histogram> HISTOGRAM
public T getFrom(ColumnStatistics<?> metadata)
BaseMetadata
.metadata
- the source of statistic valuepublic <V> V getValueStatistic(ColumnStatistics<V> metadata)
public T mergeStatistics(List<? extends ColumnStatistics<?>> statistics)
CollectableColumnStatisticsKind
ColumnStatistics
.mergeStatistics
in interface CollectableColumnStatisticsKind<T>
statistics
- list of ColumnStatistics
instances to be collectedColumnStatistics
Copyright © 1970 The Apache Software Foundation. All rights reserved.