public class TableStatisticsKind<T> extends BaseStatisticsKind<T> implements CollectableTableStatisticsKind<T>
CollectableColumnStatisticsKind
which contain base
table statistics kinds with implemented mergeStatistics()
method.Modifier and Type | Field and Description |
---|---|
static TableStatisticsKind<MetadataType> |
ANALYZE_METADATA_LEVEL
Table statistics kind which represents metadata level for which analyze was produced.
|
static TableStatisticsKind<Double> |
EST_ROW_COUNT
Table statistics kind which represents estimated row count for the specific table.
|
static TableStatisticsKind<Boolean> |
HAS_DESCRIPTIVE_STATISTICS
Table statistics kind which represents estimated row count for the specific table.
|
static TableStatisticsKind<Long> |
ROW_COUNT
Table statistics kind which represents row count for the specific table.
|
exact, statisticKey
Constructor and Description |
---|
TableStatisticsKind(String statisticKey,
boolean exact) |
Modifier and Type | Method and Description |
---|---|
T |
getValue(Metadata metadata)
Returns value which corresponds to this statistic kind,
obtained from specified
Metadata . |
T |
mergeStatistics(Collection<? extends Metadata> statistics)
Returns table 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 TableStatisticsKind<Long> ROW_COUNT
public static final TableStatisticsKind<Double> EST_ROW_COUNT
public static final TableStatisticsKind<Boolean> HAS_DESCRIPTIVE_STATISTICS
public static final TableStatisticsKind<MetadataType> ANALYZE_METADATA_LEVEL
public TableStatisticsKind(String statisticKey, boolean exact)
public T mergeStatistics(Collection<? extends Metadata> statistics)
CollectableTableStatisticsKind
ColumnStatistics
.mergeStatistics
in interface CollectableTableStatisticsKind<T>
statistics
- list of ColumnStatistics
instances to be collectedColumnStatistics
Copyright © 1970 The Apache Software Foundation. All rights reserved.