org.apache.mahout.utils.io
Class ChunkedWriter
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkedWriter
public ChunkedWriter(org.apache.hadoop.conf.Configuration conf,
int chunkSizeInMB,
org.apache.hadoop.fs.Path output)
throws IOException
- Throws:
IOException
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.