hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acmur...@apache.org
Subject svn commit: r607007 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/mapred/FileInputFormat.java
Date Thu, 27 Dec 2007 06:35:57 GMT
Author: acmurthy
Date: Wed Dec 26 22:35:55 2007
New Revision: 607007

URL: http://svn.apache.org/viewvc?rev=607007&view=rev
Log:
HADOOP-2466. Change FileInputFormat.computeSplitSize to a protected non-static method to allow
sub-classes to provide alternate implementations. Contributed by Alejandro Abdelnur.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/FileInputFormat.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=607007&r1=607006&r2=607007&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Wed Dec 26 22:35:55 2007
@@ -136,6 +136,10 @@
     open, and block report, to evaluate the name-node performance 
     for optimizations or new features. (Konstantin Shvachko via shv)
 
+    HADOOP-2466. Change FileInputFormat.computeSplitSize to a protected
+    non-static method to allow sub-classes to provide alternate
+    implementations. (Alejandro Abdelnur via acmurthy) 
+
   OPTIMIZATIONS
 
     HADOOP-1898.  Release the lock protecting the last time of the last stack

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/FileInputFormat.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/FileInputFormat.java?rev=607007&r1=607006&r2=607007&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/FileInputFormat.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/FileInputFormat.java Wed Dec 26
22:35:55 2007
@@ -205,7 +205,7 @@
     return splits.toArray(new FileSplit[splits.size()]);
   }
 
-  private static long computeSplitSize(long goalSize, long minSize,
+  protected long computeSplitSize(long goalSize, long minSize,
                                        long blockSize) {
     return Math.max(minSize, Math.min(goalSize, blockSize));
   }



Mime
View raw message