Class PartitionStatisticsUpdateDTO

java.lang.Object
org.apache.gravitino.dto.stats.PartitionStatisticsUpdateDTO
All Implemented Interfaces:
PartitionStatisticsUpdate

public class PartitionStatisticsUpdateDTO extends Object implements PartitionStatisticsUpdate
PartitionStatisticsUpdateDTO is a Data Transfer Object (DTO) that represents the request to update statistics for a specific partition in a data source.
  • Constructor Details

    • PartitionStatisticsUpdateDTO

      protected PartitionStatisticsUpdateDTO()
      Default constructor for Jackson.
  • Method Details

    • partitionName

      public String partitionName()
      Description copied from interface: PartitionStatisticsUpdate
      Returns the name of the partition for which these statistics are applicable.
      Specified by:
      partitionName in interface PartitionStatisticsUpdate
      Returns:
      the name of the partition.
    • statistics

      public Map<String,StatisticValue<?>> statistics()
      Description copied from interface: PartitionStatisticsUpdate
      Returns the statistics to be updated for the partition.
      Specified by:
      statistics in interface PartitionStatisticsUpdate
      Returns:
      a map where the key is the statistic name and the value is the statistic value.
    • validate

      public void validate()
      Validates the PartitionStatisticsUpdateDTO instance.
    • of

      public static PartitionStatisticsUpdateDTO of(String partitionName, Map<String,StatisticValue<?>> statistics)
      Creates a new instance of PartitionStatisticsUpdateDTO.
      Parameters:
      partitionName - the name of the partition for which these statistics are applicable
      statistics - the statistics applicable to the partition
      Returns:
      a new instance of PartitionStatisticsUpdateDTO