Package io.trino.plugin.hive.util
Class Statistics
java.lang.Object
io.trino.plugin.hive.util.Statistics
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<List<String>,ComputedStatistics> createComputedStatisticsToPartitionMap(Collection<ComputedStatistics> computedStatistics, List<String> partitionColumns, Map<String, Type> columnTypes) static PartitionStatisticscreateEmptyPartitionStatistics(Map<String, Type> columnTypes, Map<String, Set<HiveColumnStatisticType>> columnStatisticsMetadataTypes) static Map<String,HiveColumnStatistics> fromComputedStatistics(Map<ColumnStatisticMetadata, Block> computedStatistics, Map<String, Type> columnTypes, long rowCount) static HiveColumnStatisticsmerge(HiveColumnStatistics first, HiveColumnStatistics second) static PartitionStatisticsmerge(PartitionStatistics first, PartitionStatistics second) static Map<String,HiveColumnStatistics> merge(Map<String, HiveColumnStatistics> first, Map<String, HiveColumnStatistics> second) static HiveBasicStatisticsreduce(HiveBasicStatistics first, HiveBasicStatistics second, Statistics.ReduceOperator operator)
-
Method Details
-
merge
-
reduce
public static HiveBasicStatistics reduce(HiveBasicStatistics first, HiveBasicStatistics second, Statistics.ReduceOperator operator) -
merge
public static Map<String,HiveColumnStatistics> merge(Map<String, HiveColumnStatistics> first, Map<String, HiveColumnStatistics> second) -
merge
-
createEmptyPartitionStatistics
public static PartitionStatistics createEmptyPartitionStatistics(Map<String, Type> columnTypes, Map<String, Set<HiveColumnStatisticType>> columnStatisticsMetadataTypes) -
createComputedStatisticsToPartitionMap
public static Map<List<String>,ComputedStatistics> createComputedStatisticsToPartitionMap(Collection<ComputedStatistics> computedStatistics, List<String> partitionColumns, Map<String, Type> columnTypes) -
fromComputedStatistics
public static Map<String,HiveColumnStatistics> fromComputedStatistics(Map<ColumnStatisticMetadata, Block> computedStatistics, Map<String, Type> columnTypes, long rowCount)
-