Modifier and Type | Method and Description |
---|---|
List<ColStatistics> |
RelOptHiveTable.getColStat(List<Integer> projIndxLst) |
List<ColStatistics> |
RelOptHiveTable.getColStat(List<Integer> projIndxLst,
boolean allowNullColumnForMissingStats) |
Modifier and Type | Method and Description |
---|---|
List<ColStatistics> |
HiveTableScan.getColStat(List<Integer> projIndxLst) |
Modifier and Type | Method and Description |
---|---|
ColStatistics |
ColStatistics.clone() |
ColStatistics |
Statistics.getColumnStatisticsFromColName(String colName) |
Modifier and Type | Method and Description |
---|---|
List<ColStatistics> |
Statistics.getColumnStats() |
Modifier and Type | Method and Description |
---|---|
void |
Statistics.addToColumnStats(List<ColStatistics> colStats) |
void |
Statistics.setColumnStats(List<ColStatistics> colStats) |
void |
Statistics.setColumnStats(Map<String,ColStatistics> colStats) |
Modifier and Type | Method and Description |
---|---|
static ColStatistics |
StatsUtils.getColStatistics(ColumnStatisticsObj cso,
String tabName,
String colName)
Convert ColumnStatisticsObj to ColStatistics
|
static ColStatistics |
StatsUtils.getColStatisticsFromExpression(HiveConf conf,
Statistics parentStats,
ExprNodeDesc end)
Get column statistics expression nodes
|
Modifier and Type | Method and Description |
---|---|
static List<ColStatistics> |
StatsUtils.getColStatisticsFromExprMap(HiveConf conf,
Statistics parentStats,
Map<String,ExprNodeDesc> colExprMap,
RowSchema rowSchema)
Get column statistics from parent statistics.
|
static List<ColStatistics> |
StatsUtils.getColStatisticsUpdatingTableAlias(Statistics parentStats,
RowSchema rowSchema)
Get column statistics from parent statistics given the
row schema of its child.
|
static List<ColStatistics> |
StatsUtils.getTableColumnStats(Table table,
List<ColumnInfo> schema,
List<String> neededColumns)
Get table level column statistics from metastore for needed columns
|
Modifier and Type | Method and Description |
---|---|
static float |
StatsUtils.getScaledSelectivity(ColStatistics csPK,
ColStatistics csFK)
Scale selectivity based on key range ratio.
|
static boolean |
StatsUtils.inferForeignKey(ColStatistics csPK,
ColStatistics csFK)
Infer foreign key relationship from given column statistics.
|
Modifier and Type | Method and Description |
---|---|
static long |
StatsUtils.getDataSizeFromColumnStats(long numRows,
List<ColStatistics> colStats)
Compute raw data size from column statistics
|
static void |
StatsUtils.inferAndSetPrimaryKey(long numRows,
List<ColStatistics> colStats)
Based on the provided column statistics and number of rows, this method infers if the column
can be primary key.
|
Copyright © 2016 The Apache Software Foundation. All rights reserved.