public class CSVRecordWriter extends FileRecordWriter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_DELIMITER |
conf, DEFAULT_CHARSET, encoding, NEW_LINE, out, PATH, writeToAPPEND| Constructor and Description |
|---|
CSVRecordWriter() |
CSVRecordWriter(Configuration conf) |
CSVRecordWriter(java.io.File path) |
CSVRecordWriter(java.io.File path,
boolean append) |
CSVRecordWriter(java.io.File path,
boolean append,
java.nio.charset.Charset encoding,
java.lang.String delimiter) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(java.util.Collection<Writable> record)
Write a record
|
close, getConf, setConfpublic static final java.lang.String DEFAULT_DELIMITER
public CSVRecordWriter()
public CSVRecordWriter(java.io.File path)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic CSVRecordWriter(java.io.File path,
boolean append)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic CSVRecordWriter(Configuration conf) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic CSVRecordWriter(java.io.File path,
boolean append,
java.nio.charset.Charset encoding,
java.lang.String delimiter)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void write(java.util.Collection<Writable> record) throws java.io.IOException
RecordWriterwrite in interface RecordWriterwrite in class FileRecordWriterrecord - the record to writejava.io.IOException