mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smar...@apache.org
Subject svn commit: r1491008 - /mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java
Date Sat, 08 Jun 2013 16:37:23 GMT
Author: smarthi
Date: Sat Jun  8 16:37:23 2013
New Revision: 1491008

URL: http://svn.apache.org/r1491008
Log:
MAHOUT-1243: Dictionary file format in Lucene-Mahout integration is not in SequenceFileFormat
- removed deprecated calls to Closeables.closeQuietly()

Modified:
    mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java

Modified: mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java
URL: http://svn.apache.org/viewvc/mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java?rev=1491008&r1=1491007&r2=1491008&view=diff
==============================================================================
--- mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java
(original)
+++ mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java
Sat Jun  8 16:37:23 2013
@@ -116,7 +116,7 @@ public final class Driver {
       long numDocs = vectorWriter.write(iterable, maxDocs);
       log.info("Wrote: {} vectors", numDocs);
     } finally {
-      Closeables.closeQuietly(vectorWriter);
+      Closeables.close(vectorWriter, false);
     }
 
     File dictOutFile = new File(dictOut);
@@ -126,7 +126,7 @@ public final class Driver {
     try {
       tiWriter.write(termInfo);
     } finally {
-      Closeables.closeQuietly(tiWriter);
+      Closeables.close(tiWriter, false);
     }
 
     if (!"".equals(seqDictOut)) {
@@ -149,7 +149,7 @@ public final class Driver {
           seqWriter.append(term, termIndex);
         }
       } finally {
-        Closeables.closeQuietly(seqWriter);
+        Closeables.close(seqWriter, false);
       }
 
     }



Mime
View raw message