public final class ChunkedWriter extends Object implements Closeable
| Constructor and Description |
|---|
ChunkedWriter(org.apache.hadoop.conf.Configuration conf,
int chunkSizeInMB,
org.apache.hadoop.fs.Path output) |
public ChunkedWriter(org.apache.hadoop.conf.Configuration conf,
int chunkSizeInMB,
org.apache.hadoop.fs.Path output)
throws IOException
conf - needed by Hadoop to know what filesystem implementation to use.chunkSizeInMB - approximate size of each file, in Megabytes.output - directory where the sequence files will be created.IOExceptionpublic void write(String key, String value) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.