public class CSVRecordWriter extends FileRecordWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DELIMITER |
conf, DEFAULT_CHARSET, encoding, NEW_LINE, out, partitionerAPPEND| Constructor and Description |
|---|
CSVRecordWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supportsBatch()
Returns true if this record writer
supports efficient batch writing using
RecordWriter.writeBatch(List) |
PartitionMetaData |
write(List<Writable> record)
Write a record
|
PartitionMetaData |
writeBatch(List<List<Writable>> batch)
Write a batch of records
|
close, getConf, initialize, initialize, setConfpublic static final String DEFAULT_DELIMITER
public boolean supportsBatch()
RecordWriterRecordWriter.writeBatch(List)public PartitionMetaData writeBatch(List<List<Writable>> batch) throws IOException
RecordWriterbatch - the batch to writeIOExceptionpublic PartitionMetaData write(List<Writable> record) throws IOException
RecordWriterrecord - the record to writeIOExceptionCopyright © 2019. All rights reserved.