org.apache.mahout.text
Class SequenceFilesFromDirectory.ChunkedWriter

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

public static class SequenceFilesFromDirectory.ChunkedWriter
extends java.lang.Object
implements java.io.Closeable


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

Constructor Detail

SequenceFilesFromDirectory.ChunkedWriter

public SequenceFilesFromDirectory.ChunkedWriter(int chunkSizeInMB,
                                                java.lang.String outputDir)
                                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

write

public void write(java.lang.String key,
                  java.lang.String value)
           throws java.io.IOException
Throws:
java.io.IOException

close

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


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