public class CSVRecordWriter extends Object implements RecordWriter
| Constructor and Description |
|---|
CSVRecordWriter(File file,
com.aliyun.odps.counter.Counter recordCounter,
com.aliyun.odps.counter.Counter byteCounter,
char outputColumnSeperator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getLen() |
void |
write(Record record) |
void |
write(RecordPack pack) |
public CSVRecordWriter(File file, com.aliyun.odps.counter.Counter recordCounter, com.aliyun.odps.counter.Counter byteCounter, char outputColumnSeperator) throws IOException
IOExceptionpublic void write(Record record) throws IOException
write in interface RecordWriterIOExceptionpublic void write(RecordPack pack) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getLen()
throws IOException
IOExceptionCopyright © 2020 Alibaba Cloud Computing. All rights reserved.