public class DecimalColumnStatsAggregator extends ColumnStatsAggregator implements IExtrapolatePartStatus
ndvTuner, useDensityFunctionForNDVEstimation| Constructor and Description |
|---|
DecimalColumnStatsAggregator() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj |
aggregate(List<MetaStoreUtils.ColStatsObjWithSourceInfo> colStatsWithSourceInfo,
List<String> partNames,
boolean areAllPartsFound) |
void |
extrapolate(org.apache.hadoop.hive.metastore.api.ColumnStatisticsData extrapolateData,
int numParts,
int numPartsWithStats,
Map<String,Double> adjustedIndexMap,
Map<String,org.apache.hadoop.hive.metastore.api.ColumnStatisticsData> adjustedStatsMap,
double densityAvg) |
public org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj aggregate(List<MetaStoreUtils.ColStatsObjWithSourceInfo> colStatsWithSourceInfo, List<String> partNames, boolean areAllPartsFound) throws org.apache.hadoop.hive.metastore.api.MetaException
aggregate in class ColumnStatsAggregatororg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void extrapolate(org.apache.hadoop.hive.metastore.api.ColumnStatisticsData extrapolateData,
int numParts,
int numPartsWithStats,
Map<String,Double> adjustedIndexMap,
Map<String,org.apache.hadoop.hive.metastore.api.ColumnStatisticsData> adjustedStatsMap,
double densityAvg)
extrapolate in interface IExtrapolatePartStatusextrapolateData - it will carry back the specific stats, e.g., DOUBLE_STATS or
LONG_STATSnumParts - the total number of partitionsnumPartsWithStats - the number of partitions that have statsadjustedIndexMap - the partition name to index mapadjustedStatsMap - the partition name to its stats mapdensityAvg - the average of ndv density, which is useful when
useDensityFunctionForNDVEstimation is true.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.