org.apache.mahout.utils.io
Class ChunkedWriter

java.lang.Object
  extended by org.apache.mahout.utils.io.ChunkedWriter
All Implemented Interfaces:
Closeable

public final class ChunkedWriter
extends Object
implements Closeable


Constructor Summary
ChunkedWriter(org.apache.hadoop.conf.Configuration conf, int chunkSizeInMB, org.apache.hadoop.fs.Path output)
           
 
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

ChunkedWriter

public ChunkedWriter(org.apache.hadoop.conf.Configuration conf,
                     int chunkSizeInMB,
                     org.apache.hadoop.fs.Path output)
              throws IOException
Throws:
IOException
Method Detail

write

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

close

public void close()
Specified by:
close in interface Closeable


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