public class LineRecordWriter extends FileRecordWriter
conf, DEFAULT_CHARSET, encoding, NEW_LINE, out, PATH, writeTo
APPEND
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, setConf
public LineRecordWriter()
public LineRecordWriter(java.io.File path) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public LineRecordWriter(java.io.File path, boolean append) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public LineRecordWriter(Configuration conf) 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