Package org.apache.gravitino.stats
Class PartitionStatisticsModification
java.lang.Object
org.apache.gravitino.stats.PartitionStatisticsModification
PartitionStatisticsModification provides methods to create instances of PartitionStatisticsDrop
and PartitionStatisticsUpdate, which are used to manage statistics related to partitions in a
data source.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionStatisticsDrop
Creates a PartitionDropStatistics instance with the specified partition name and statistic names.static PartitionStatisticsUpdate
update
(String partitionName, Map<String, StatisticValue<?>> statistics) Creates a PartitionUpdateStatistics instance with the specified partition name and statistics.
-
Constructor Details
-
PartitionStatisticsModification
public PartitionStatisticsModification()
-
-
Method Details
-
drop
Creates a PartitionDropStatistics instance with the specified partition name and statistic names.- Parameters:
partitionName
- the name of the partition.statisticNames
- a list of statistic names that are relevant to the partition being dropped.- Returns:
- a PartitionDropStatistics instance
-
update
public static PartitionStatisticsUpdate update(String partitionName, Map<String, StatisticValue<?>> statistics) Creates a PartitionUpdateStatistics instance with the specified partition name and statistics.- Parameters:
partitionName
- the name of the partitionstatistics
- a map of statistic names to their values to be updated- Returns:
- a PartitionUpdateStatistics instance
-