Class PartitionStatisticsModification

java.lang.Object
org.apache.gravitino.stats.PartitionStatisticsModification

public class PartitionStatisticsModification extends Object
PartitionStatisticsModification provides methods to create instances of PartitionStatisticsDrop and PartitionStatisticsUpdate, which are used to manage statistics related to partitions in a data source.
  • Constructor Details

    • PartitionStatisticsModification

      public PartitionStatisticsModification()
  • Method Details

    • drop

      public static PartitionStatisticsDrop drop(String partitionName, List<String> statisticNames)
      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 partition
      statistics - a map of statistic names to their values to be updated
      Returns:
      a PartitionUpdateStatistics instance