Package org.apache.gravitino.dto.stats
Class PartitionStatisticsDTO
java.lang.Object
org.apache.gravitino.dto.stats.PartitionStatisticsDTO
- All Implemented Interfaces:
PartitionStatistics
PartitionStatisticsDTO is a Data Transfer Object (DTO) that represents the statistics for a
specific partition in a data source.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor for Jackson. -
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionStatisticsDTO
of
(String partitionName, StatisticDTO[] statistics) Creates a new instance of PartitionStatisticsDTO.Returns the name of the partition for which these statistics are applicable.Returns the statistics for the partition.void
validate()
Validates the PartitionStatisticsDTO instance.
-
Constructor Details
-
PartitionStatisticsDTO
protected PartitionStatisticsDTO()Default constructor for Jackson.
-
-
Method Details
-
partitionName
Description copied from interface:PartitionStatistics
Returns the name of the partition for which these statistics are applicable.- Specified by:
partitionName
in interfacePartitionStatistics
- Returns:
- the name of the partition
-
statistics
Description copied from interface:PartitionStatistics
Returns the statistics for the partition.- Specified by:
statistics
in interfacePartitionStatistics
- Returns:
- a array of statistics applicable to the partition
-
validate
public void validate()Validates the PartitionStatisticsDTO instance. -
of
Creates a new instance of PartitionStatisticsDTO.- Parameters:
partitionName
- the name of the partition for which these statistics are applicablestatistics
- the statistics applicable to the partition- Returns:
- a new instance of PartitionStatisticsDTO
-