public class CSVRecordWriter extends FileRecordWriter
conf, NEW_LINE, out, PATH, writeToAPPEND| Constructor and Description |
|---|
CSVRecordWriter() |
CSVRecordWriter(Configuration conf) |
CSVRecordWriter(File path) |
CSVRecordWriter(File path,
boolean append) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(Collection<Writable> record)
Write a record
|
close, getConf, setConfpublic CSVRecordWriter()
public CSVRecordWriter(File path) throws FileNotFoundException
FileNotFoundExceptionpublic CSVRecordWriter(File path, boolean append) throws FileNotFoundException
FileNotFoundExceptionpublic CSVRecordWriter(Configuration conf) throws FileNotFoundException
FileNotFoundExceptionpublic void write(Collection<Writable> record) throws IOException
RecordWriterwrite in interface RecordWriterwrite in class FileRecordWriterrecord - the record to writeIOExceptionCopyright © 2015. All rights reserved.