weizhengte commented on code in PR #8860:
URL: https://github.com/apache/incubator-doris/pull/8860#discussion_r855728273


##########
fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticsTaskResult.java:
##########
@@ -17,17 +17,40 @@
 
 package org.apache.doris.statistics;
 
+import com.google.common.collect.Maps;
 import java.util.Map;
 
 public class StatisticsTaskResult {
-    private StatsGranularityDesc granularityDesc;
-    private StatsCategoryDesc categoryDesc;
-    private Map<StatsType, String> statsTypeToValue;
+    private final StatsGranularityDesc granularityDesc;
+    private final StatsCategoryDesc categoryDesc;
+    private final Map<StatsType, String> statsTypeToValue;
 
     public StatisticsTaskResult(StatsGranularityDesc granularityDesc, 
StatsCategoryDesc categoryDesc,
                                 Map<StatsType, String> statsTypeToValue) {
         this.granularityDesc = granularityDesc;
         this.categoryDesc = categoryDesc;
         this.statsTypeToValue = statsTypeToValue;
     }
+
+    public StatsGranularityDesc getGranularityDesc() {
+        return this.granularityDesc;
+    }
+
+    public StatsCategoryDesc getCategoryDesc() {
+        return this.categoryDesc;
+    }
+
+    public Map<StatsType, String> getStatsTypeToValue() {
+        return this.statsTypeToValue;
+    }
+
+    public Map<String, String> getStatsNameToValue() {

Review Comment:
   That's true, but more conversions need to be done elsewhere



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to