hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r681217 - in /hadoop/core/trunk: CHANGES.txt src/core/org/apache/hadoop/io/MapFile.java
Date Wed, 30 Jul 2008 22:01:28 GMT
Author: omalley
Date: Wed Jul 30 15:01:27 2008
New Revision: 681217

URL: http://svn.apache.org/viewvc?rev=681217&view=rev
Log:
HADOOP-3861. MapFile.Reader and Writer should implement Closeable.
Contributed by Tom White.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/core/org/apache/hadoop/io/MapFile.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=681217&r1=681216&r2=681217&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Wed Jul 30 15:01:27 2008
@@ -121,6 +121,9 @@
     HADOOP-3646. Add a bzip2 compatible codec, so bzip compressed data
     may be processed by map/reduce. (Abdul Qadeer via cdouglas)
 
+    HADOOP-3861. MapFile.Reader and Writer should implement Closeable.
+    (tomwhite via omalley)
+
   OPTIMIZATIONS
 
     HADOOP-3556. Removed lock contention in MD5Hash by changing the 

Modified: hadoop/core/trunk/src/core/org/apache/hadoop/io/MapFile.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/core/org/apache/hadoop/io/MapFile.java?rev=681217&r1=681216&r2=681217&view=diff
==============================================================================
--- hadoop/core/trunk/src/core/org/apache/hadoop/io/MapFile.java (original)
+++ hadoop/core/trunk/src/core/org/apache/hadoop/io/MapFile.java Wed Jul 30 15:01:27 2008
@@ -58,7 +58,7 @@
   protected MapFile() {}                          // no public ctor
 
   /** Writes a new map. */
-  public static class Writer {
+  public static class Writer implements java.io.Closeable {
     private SequenceFile.Writer data;
     private SequenceFile.Writer index;
 
@@ -215,7 +215,7 @@
   }
   
   /** Provide access to an existing map. */
-  public static class Reader {
+  public static class Reader implements java.io.Closeable {
       
     /** Number of index entries to skip between each entry.  Zero by default.
      * Setting this to values larger than zero can facilitate opening large map



Mime
View raw message