hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r391364 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapReduceBase.java
Date Tue, 04 Apr 2006 16:50:29 GMT
Author: cutting
Date: Tue Apr  4 09:50:13 2006
New Revision: 391364

URL: http://svn.apache.org/viewcvs?rev=391364&view=rev
Log:
Fix so that close() throws IOException, so that classes which override
this method can throw IOException, as specified in the Closeable
interface.  Also add the Apache license (which must be in every file)
and add a bit more javadoc.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapReduceBase.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapReduceBase.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapReduceBase.java?rev=391364&r1=391363&r2=391364&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapReduceBase.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/MapReduceBase.java Tue Apr  4 09:50:13
2006
@@ -1,17 +1,38 @@
+/**
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.hadoop.mapred;
 
+import java.io.IOException;
+
 import org.apache.hadoop.io.Closeable;
 import org.apache.hadoop.mapred.JobConfigurable;
 
-/**
- * A class to implement the trivial close and configure methods.
+/** Base class for {@link Mapper} and {@link Reducer} implementations.
+ * Provides default implementations for a few methods.
+ *
  * @author Owen O'Malley
  */
 public class MapReduceBase implements Closeable, JobConfigurable {
 
-  public void close() {
+  /** Default implementation that does nothing. */
+  public void close() throws IOException {
   }
 
+  /** Default implementation that does nothing. */
   public void configure(JobConf job) {
   }
 



Mime
View raw message