Ver Fonte

HADOOP-2800. Deprecate SetFile.Writer constructor not the whole class. Contributed by Johan Oskarsson.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@632056 13f79535-47bb-0310-9956-ffa450edef68
Thomas White há 17 anos atrás
pai
commit
bc27f88a84
2 ficheiros alterados com 8 adições e 3 exclusões
  1. 3 0
      CHANGES.txt
  2. 5 3
      src/java/org/apache/hadoop/io/SetFile.java

+ 3 - 0
CHANGES.txt

@@ -83,6 +83,9 @@ Trunk (unreleased changes)
     HADOOP-2871. Fixes a problem to do with file: URI in the JobHistory init.
     (Amareshwari Sri Ramadasu via ddas)
 
+    HADOOP-2800.  Deprecate SetFile.Writer constructor not the whole class.
+    (Johan Oskarsson via tomwhite)
+
 Release 0.16.1 - Unreleased
 
   IMPROVEMENTS

+ 5 - 3
src/java/org/apache/hadoop/io/SetFile.java

@@ -29,12 +29,14 @@ public class SetFile extends MapFile {
 
   protected SetFile() {}                            // no public ctor
 
-  /** Write a new set file.
-   * @deprecated pass a Configuration too
+  /** 
+   * Write a new set file.
    */
   public static class Writer extends MapFile.Writer {
 
-    /** Create the named set for keys of the named class. */
+    /** Create the named set for keys of the named class. 
+     *  @deprecated pass a Configuration too
+     */
     public Writer(FileSystem fs, String dirName, Class keyClass) throws IOException {
       super(new Configuration(), fs, dirName, keyClass, NullWritable.class);
     }