public class StatObjectConverter extends Object
| Constructor and Description |
|---|
StatObjectConverter() |
| Modifier and Type | Method and Description |
|---|---|
static MPartitionColumnStatistics |
convertToMPartitionColumnStatistics(MPartition partition,
org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc statsDesc,
org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj statsObj) |
static MTableColumnStatistics |
convertToMTableColumnStatistics(MTable table,
org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc statsDesc,
org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj statsObj) |
static void |
fillColumnStatisticsData(String colType,
org.apache.hadoop.hive.metastore.api.ColumnStatisticsData data,
Object llow,
Object lhigh,
Object dlow,
Object dhigh,
Object declow,
Object dechigh,
Object nulls,
Object dist,
Object bitVector,
Object avglen,
Object maxlen,
Object trues,
Object falses) |
static void |
fillColumnStatisticsData(String colType,
org.apache.hadoop.hive.metastore.api.ColumnStatisticsData data,
Object llow,
Object lhigh,
Object dlow,
Object dhigh,
Object declow,
Object dechigh,
Object nulls,
Object dist,
Object avglen,
Object maxlen,
Object trues,
Object falses,
Object avgLong,
Object avgDouble,
Object avgDecimal,
Object sumDist,
boolean useDensityFunctionForNDVEstimation,
double ndvTuner) |
static org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc |
getPartitionColumnStatisticsDesc(MPartitionColumnStatistics mStatsObj) |
static org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj |
getPartitionColumnStatisticsObj(MPartitionColumnStatistics mStatsObj,
boolean enableBitVector) |
static org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc |
getTableColumnStatisticsDesc(MTableColumnStatistics mStatsObj) |
static org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj |
getTableColumnStatisticsObj(MTableColumnStatistics mStatsObj,
boolean enableBitVector) |
static void |
setFieldsIntoOldStats(org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj oldStatObj,
org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj newStatObj)
Set field values in oldStatObj from newStatObj
|
static void |
setFieldsIntoOldStats(MPartitionColumnStatistics mStatsObj,
MPartitionColumnStatistics oldStatsObj) |
static void |
setFieldsIntoOldStats(MTableColumnStatistics mStatsObj,
MTableColumnStatistics oldStatsObj) |
public static MTableColumnStatistics convertToMTableColumnStatistics(MTable table, org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc statsDesc, org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj statsObj) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.InvalidObjectException
org.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionpublic static void setFieldsIntoOldStats(MTableColumnStatistics mStatsObj, MTableColumnStatistics oldStatsObj)
public static void setFieldsIntoOldStats(MPartitionColumnStatistics mStatsObj, MPartitionColumnStatistics oldStatsObj)
public static org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj getTableColumnStatisticsObj(MTableColumnStatistics mStatsObj, boolean enableBitVector)
public static org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc getTableColumnStatisticsDesc(MTableColumnStatistics mStatsObj)
public static MPartitionColumnStatistics convertToMPartitionColumnStatistics(MPartition partition, org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc statsDesc, org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj statsObj) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionpublic static org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj getPartitionColumnStatisticsObj(MPartitionColumnStatistics mStatsObj, boolean enableBitVector)
public static org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc getPartitionColumnStatisticsDesc(MPartitionColumnStatistics mStatsObj)
public static void fillColumnStatisticsData(String colType, org.apache.hadoop.hive.metastore.api.ColumnStatisticsData data, Object llow, Object lhigh, Object dlow, Object dhigh, Object declow, Object dechigh, Object nulls, Object dist, Object bitVector, Object avglen, Object maxlen, Object trues, Object falses) throws org.apache.hadoop.hive.metastore.api.MetaException
org.apache.hadoop.hive.metastore.api.MetaExceptionpublic static void fillColumnStatisticsData(String colType, org.apache.hadoop.hive.metastore.api.ColumnStatisticsData data, Object llow, Object lhigh, Object dlow, Object dhigh, Object declow, Object dechigh, Object nulls, Object dist, Object avglen, Object maxlen, Object trues, Object falses, Object avgLong, Object avgDouble, Object avgDecimal, Object sumDist, boolean useDensityFunctionForNDVEstimation, double ndvTuner) throws org.apache.hadoop.hive.metastore.api.MetaException
org.apache.hadoop.hive.metastore.api.MetaExceptionpublic static void setFieldsIntoOldStats(org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj oldStatObj,
org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj newStatObj)
oldStatObj - newStatObj - Copyright © 2019 The Apache Software Foundation. All Rights Reserved.