org.apache.mahout.text
Class SequenceFilesFromMailArchives.ChunkedWriter

java.lang.Object
  extended by org.apache.mahout.text.SequenceFilesFromMailArchives.ChunkedWriter
All Implemented Interfaces:
Closeable
Enclosing class:
SequenceFilesFromMailArchives

public static class SequenceFilesFromMailArchives.ChunkedWriter
extends Object
implements Closeable


Constructor Summary
SequenceFilesFromMailArchives.ChunkedWriter(int chunkSizeInMB, String outputDir)
           
 
Method Summary
 void close()
           
 void write(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceFilesFromMailArchives.ChunkedWriter

public SequenceFilesFromMailArchives.ChunkedWriter(int chunkSizeInMB,
                                                   String outputDir)
                                            throws IOException
Throws:
IOException
Method Detail

write

public void write(String key,
                  String value)
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.