Class PartitionStatisticsDropDTO

java.lang.Object
org.apache.gravitino.dto.stats.PartitionStatisticsDropDTO
All Implemented Interfaces:
PartitionStatisticsDrop

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

    • PartitionStatisticsDropDTO

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

    • partitionName

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

      public List<String> statisticNames()
      Description copied from interface: PartitionStatisticsDrop
      Returns the names of the statistics that are relevant to the partition being dropped.
      Specified by:
      statisticNames in interface PartitionStatisticsDrop
      Returns:
      a list of statistic names
    • validate

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

      public static PartitionStatisticsDropDTO of(String partitionName, List<String> statisticNames)
      Creates a new instance of PartitionStatisticsDropDTO.
      Parameters:
      partitionName - the name of the partition for which these statistics are applicable
      statisticNames - the names of the statistics to drop for the partition
      Returns:
      a new instance of PartitionStatisticsDropDTO