Class PartitionStatisticsDTO

java.lang.Object
org.apache.gravitino.dto.stats.PartitionStatisticsDTO
All Implemented Interfaces:
PartitionStatistics

public class PartitionStatisticsDTO extends Object implements PartitionStatistics
PartitionStatisticsDTO is a Data Transfer Object (DTO) that represents the statistics for a specific partition in a data source.
  • Constructor Details

    • PartitionStatisticsDTO

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

    • partitionName

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

      public Statistic[] statistics()
      Description copied from interface: PartitionStatistics
      Returns the statistics for the partition.
      Specified by:
      statistics in interface PartitionStatistics
      Returns:
      a array of statistics applicable to the partition
    • validate

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

      public static PartitionStatisticsDTO of(String partitionName, StatisticDTO[] statistics)
      Creates a new instance of PartitionStatisticsDTO.
      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 PartitionStatisticsDTO