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