Class ColumnStatisticsKind<T>
java.lang.Object
org.apache.drill.metastore.statistics.BaseStatisticsKind<T>
org.apache.drill.metastore.statistics.ColumnStatisticsKind<T>
- All Implemented Interfaces:
CollectableColumnStatisticsKind<T>
,StatisticsKind<T>
public class ColumnStatisticsKind<T>
extends BaseStatisticsKind<T>
implements CollectableColumnStatisticsKind<T>
Implementation of
CollectableColumnStatisticsKind
which contain base
column statistics kinds with implemented mergeStatistics()
method.-
Field Summary
Modifier and TypeFieldDescriptionstatic final ColumnStatisticsKind<?>
Column statistics kind which is the width of the specific column.static final ColumnStatisticsKind<Histogram>
Column statistics kind which is the histogram of the specific column.static final ColumnStatisticsKind<Object>
Column statistics kind which represents max value of the specific column.static final ColumnStatisticsKind<Object>
Column statistics kind which represents min value of the specific column.static final ColumnStatisticsKind<Double>
Column statistics kind which represents number of distinct values for the specific column.static final ColumnStatisticsKind<Double>
Column statistics kind which represents estimated number of non-null values for the specific column.static final ColumnStatisticsKind<Long>
Column statistics kind which represents exact number of non-null values for the specific column.static final ColumnStatisticsKind<Long>
Column statistics kind which represents nulls count for the specific column.static final ColumnStatisticsKind<Double>
Column statistics kind which represents total row count for the specific column.Fields inherited from class org.apache.drill.metastore.statistics.BaseStatisticsKind
exact, statisticKey
-
Method Summary
Modifier and TypeMethodDescriptiongetFrom
(ColumnStatistics<?> metadata) Returns value which corresponds to this statistic kind, obtained from specifiedBaseMetadata
.<V> V
getValueStatistic
(ColumnStatistics<V> metadata) mergeStatistics
(List<? extends ColumnStatistics<?>> statistics) Returns column statistics value received by collecting specifiedColumnStatistics
.Methods inherited from class org.apache.drill.metastore.statistics.BaseStatisticsKind
equals, getName, hashCode, isExact, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.drill.metastore.statistics.StatisticsKind
getName, isExact
-
Field Details
-
NULLS_COUNT
Column statistics kind which represents nulls count for the specific column. -
MIN_VALUE
Column statistics kind which represents min value of the specific column. -
MAX_VALUE
Column statistics kind which represents max value of the specific column. -
NON_NULL_VALUES_COUNT
Column statistics kind which represents exact number of non-null values for the specific column. -
NON_NULL_COUNT
Column statistics kind which represents estimated number of non-null values for the specific column. -
ROWCOUNT
Column statistics kind which represents total row count for the specific column. -
NDV
Column statistics kind which represents number of distinct values for the specific column. -
AVG_WIDTH
Column statistics kind which is the width of the specific column. -
HISTOGRAM
Column statistics kind which is the histogram of the specific column.
-
-
Method Details
-
getFrom
Returns value which corresponds to this statistic kind, obtained from specifiedBaseMetadata
.- Parameters:
metadata
- the source of statistic value- Returns:
- value which corresponds to this statistic kind
-
getValueStatistic
-
mergeStatistics
Description copied from interface:CollectableColumnStatisticsKind
Returns column statistics value received by collecting specifiedColumnStatistics
.- Specified by:
mergeStatistics
in interfaceCollectableColumnStatisticsKind<T>
- Parameters:
statistics
- list ofColumnStatistics
instances to be collected- Returns:
- column statistics value received by collecting specified
ColumnStatistics
-