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, writeTo
APPEND
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, setConf
public static final java.lang.String DEFAULT_DELIMITER
public CSVRecordWriter()
public CSVRecordWriter(java.io.File path) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public CSVRecordWriter(java.io.File path, boolean append) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public CSVRecordWriter(Configuration conf) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public CSVRecordWriter(java.io.File path, boolean append, java.nio.charset.Charset encoding, java.lang.String delimiter) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void write(java.util.Collection<Writable> record) throws java.io.IOException
RecordWriter
write
in interface RecordWriter
write
in class FileRecordWriter
record
- the record to writejava.io.IOException