mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smar...@apache.org
Subject svn commit: r1588574 - /mahout/trunk/core/src/test/java/org/apache/mahout/common/MockIterator.java
Date Fri, 18 Apr 2014 21:49:02 GMT
Author: smarthi
Date: Fri Apr 18 21:49:01 2014
New Revision: 1588574

URL: http://svn.apache.org/r1588574
Log:
MAHOUT-1407: Converted MockIterator() to new Mapreduce API

Modified:
    mahout/trunk/core/src/test/java/org/apache/mahout/common/MockIterator.java

Modified: mahout/trunk/core/src/test/java/org/apache/mahout/common/MockIterator.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/test/java/org/apache/mahout/common/MockIterator.java?rev=1588574&r1=1588573&r2=1588574&view=diff
==============================================================================
--- mahout/trunk/core/src/test/java/org/apache/mahout/common/MockIterator.java (original)
+++ mahout/trunk/core/src/test/java/org/apache/mahout/common/MockIterator.java Fri Apr 18
21:49:01 2014
@@ -17,8 +17,9 @@
 
 package org.apache.mahout.common;
 
-import org.apache.hadoop.io.DataInputBuffer;
-import org.apache.hadoop.mapred.RawKeyValueIterator;
+import org.apache.hadoop.io.DataOutputBuffer;
+import org.apache.hadoop.io.SequenceFile;
+import org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator;
 import org.apache.hadoop.util.Progress;
 
 public final class MockIterator implements RawKeyValueIterator {
@@ -28,7 +29,7 @@ public final class MockIterator implemen
   }
 
   @Override
-  public DataInputBuffer getKey() {
+  public DataOutputBuffer getKey() {
     return null;
   }
 
@@ -38,8 +39,7 @@ public final class MockIterator implemen
   }
 
   @Override
-  public DataInputBuffer getValue() {
-
+  public SequenceFile.ValueBytes getValue() {
     return null;
   }
 



Mime
View raw message