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