Class TableStatisticsKind<T>
java.lang.Object
org.apache.drill.metastore.statistics.BaseStatisticsKind<T>
org.apache.drill.metastore.statistics.TableStatisticsKind<T>
- All Implemented Interfaces:
CollectableTableStatisticsKind<T>
,StatisticsKind<T>
public class TableStatisticsKind<T>
extends BaseStatisticsKind<T>
implements CollectableTableStatisticsKind<T>
Implementation of
CollectableColumnStatisticsKind
which contain base
table statistics kinds with implemented mergeStatistics()
method.-
Field Summary
Modifier and TypeFieldDescriptionstatic final TableStatisticsKind<MetadataType>
Table statistics kind which represents metadata level for which analyze was produced.static final TableStatisticsKind<Double>
Table statistics kind which represents estimated row count for the specific table.static final TableStatisticsKind<Boolean>
Table statistics kind which represents estimated row count for the specific table.static final TableStatisticsKind<Long>
Table statistics kind which represents row count for the specific table.Fields inherited from class org.apache.drill.metastore.statistics.BaseStatisticsKind
exact, statisticKey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns value which corresponds to this statistic kind, obtained from specifiedMetadata
.mergeStatistics
(Collection<? extends Metadata> statistics) Returns table 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
-
ROW_COUNT
Table statistics kind which represents row count for the specific table. -
EST_ROW_COUNT
Table statistics kind which represents estimated row count for the specific table. -
HAS_DESCRIPTIVE_STATISTICS
Table statistics kind which represents estimated row count for the specific table. -
ANALYZE_METADATA_LEVEL
Table statistics kind which represents metadata level for which analyze was produced.
-
-
Constructor Details
-
TableStatisticsKind
-
-
Method Details
-
mergeStatistics
Description copied from interface:CollectableTableStatisticsKind
Returns table statistics value received by collecting specifiedColumnStatistics
.- Specified by:
mergeStatistics
in interfaceCollectableTableStatisticsKind<T>
- Parameters:
statistics
- list ofColumnStatistics
instances to be collected- Returns:
- column statistics value received by collecting specified
ColumnStatistics
-
getValue
Returns value which corresponds to this statistic kind, obtained from specifiedMetadata
.- Parameters:
metadata
- the source of statistic value- Returns:
- value which corresponds to this statistic kind
-