hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stak...@apache.org
Subject hive git commit: HIVE-17192: Add InterfaceAudience and InterfaceStability annotations for Stats Collection APIs (Sahil Takiar, reviewed by Aihua Xu)
Date Thu, 24 Aug 2017 04:12:15 GMT
Repository: hive
Updated Branches:
  refs/heads/master 985f33975 -> 9e95bd654


HIVE-17192: Add InterfaceAudience and InterfaceStability annotations for Stats Collection
APIs (Sahil Takiar, reviewed by Aihua Xu)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/9e95bd65
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/9e95bd65
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/9e95bd65

Branch: refs/heads/master
Commit: 9e95bd654ab0387629edfdbb1ca2ba6c57030eb1
Parents: 985f339
Author: Sahil Takiar <takiar.sahil@gmail.com>
Authored: Fri Jul 28 12:57:51 2017 -0700
Committer: Sahil Takiar <stakiar@cloudera.com>
Committed: Wed Aug 23 21:11:19 2017 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hive/ql/stats/ClientStatsPublisher.java  | 6 ++++++
 .../java/org/apache/hadoop/hive/ql/stats/StatsAggregator.java  | 6 +++++-
 .../apache/hadoop/hive/ql/stats/StatsCollectionContext.java    | 5 +++++
 .../java/org/apache/hadoop/hive/ql/stats/StatsPublisher.java   | 6 +++++-
 4 files changed, 21 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/9e95bd65/ql/src/java/org/apache/hadoop/hive/ql/stats/ClientStatsPublisher.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/stats/ClientStatsPublisher.java b/ql/src/java/org/apache/hadoop/hive/ql/stats/ClientStatsPublisher.java
index 2480f03..b27e9f4 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/stats/ClientStatsPublisher.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/stats/ClientStatsPublisher.java
@@ -18,8 +18,14 @@
 
 package org.apache.hadoop.hive.ql.stats;
 
+import org.apache.hadoop.hive.common.classification.InterfaceAudience;
+import org.apache.hadoop.hive.common.classification.InterfaceStability;
+
 import java.util.Map;
 
+
+@InterfaceAudience.Public
+@InterfaceStability.Stable
 public interface ClientStatsPublisher {
 
   public void run(Map<String, Double> counterValues, String jobID);

http://git-wip-us.apache.org/repos/asf/hive/blob/9e95bd65/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsAggregator.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsAggregator.java b/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsAggregator.java
index dacf7a9..63fba69 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsAggregator.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsAggregator.java
@@ -18,10 +18,14 @@
 
 package org.apache.hadoop.hive.ql.stats;
 
+import org.apache.hadoop.hive.common.classification.InterfaceAudience;
+import org.apache.hadoop.hive.common.classification.InterfaceStability;
+
 /**
  * An interface for any possible implementation for gathering statistics.
  */
-
+@InterfaceAudience.Public
+@InterfaceStability.Stable
 public interface StatsAggregator {
 
   /**

http://git-wip-us.apache.org/repos/asf/hive/blob/9e95bd65/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsCollectionContext.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsCollectionContext.java b/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsCollectionContext.java
index b58dbf3..f78e154 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsCollectionContext.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsCollectionContext.java
@@ -23,8 +23,13 @@ import java.util.Arrays;
 import java.util.List;
 
 import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hive.common.classification.InterfaceAudience;
+import org.apache.hadoop.hive.common.classification.InterfaceStability;
 import org.apache.hadoop.hive.ql.exec.Task;
 
+
+@InterfaceAudience.Public
+@InterfaceStability.Stable
 public class StatsCollectionContext {
 
   private final Configuration hiveConf;

http://git-wip-us.apache.org/repos/asf/hive/blob/9e95bd65/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsPublisher.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsPublisher.java b/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsPublisher.java
index 3631b83..7e01eff 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsPublisher.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsPublisher.java
@@ -18,12 +18,16 @@
 
 package org.apache.hadoop.hive.ql.stats;
 
+import org.apache.hadoop.hive.common.classification.InterfaceAudience;
+import org.apache.hadoop.hive.common.classification.InterfaceStability;
+
 import java.util.Map;
 
 /**
  * An interface for any possible implementation for publishing statics.
  */
-
+@InterfaceAudience.Public
+@InterfaceStability.Stable
 public interface StatsPublisher {
 
   /**


Mime
View raw message