Browse Source

MAPREDUCE-3935. Annotate Counters.Counter and Counters.Group as @Public.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1296523 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 13 năm trước cách đây
mục cha
commit
ce11ff73db

+ 3 - 0
hadoop-mapreduce-project/CHANGES.txt

@@ -47,6 +47,9 @@ Trunk (unreleased changes)
     MAPREDUCE-3956. Remove the use of the deprecated Syncable.sync() method from
     TeraOutputFormat in the terasort example.  (szetszwo)
 
+    MAPREDUCE-3935. Annotate Counters.Counter and Counters.Group as @Public.
+    (tomwhite)
+
   BUG FIXES
 
     MAPREDUCE-3757. [Rumen] Fixed Rumen Folder to adjust shuffleFinished and

+ 4 - 0
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/Counters.java

@@ -96,6 +96,8 @@ public class Counters
   /**
    * A counter record, comprising its name and value.
    */
+  @InterfaceAudience.Public
+  @InterfaceStability.Stable
   public static class Counter implements org.apache.hadoop.mapreduce.Counter {
     org.apache.hadoop.mapreduce.Counter realCounter;
 
@@ -207,6 +209,8 @@ public class Counters
    *  <p><code>Group</code>handles localization of the class name and the
    *  counter names.</p>
    */
+  @InterfaceAudience.Public
+  @InterfaceStability.Stable
   public static class Group implements CounterGroupBase<Counter> {
     private CounterGroupBase<Counter> realGroup;