public class LineRecordWriter extends FileRecordWriter
conf, DEFAULT_CHARSET, encoding, NEW_LINE, out, PATH, writeToAPPEND| Constructor and Description |
|---|
LineRecordWriter() |
LineRecordWriter(Configuration conf) |
LineRecordWriter(File path) |
LineRecordWriter(File path,
boolean append) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(List<Writable> record)
Write a record
|
close, getConf, setConfpublic LineRecordWriter()
public LineRecordWriter(File path) throws FileNotFoundException
FileNotFoundExceptionpublic LineRecordWriter(File path, boolean append) throws FileNotFoundException
FileNotFoundExceptionpublic LineRecordWriter(Configuration conf) 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.