public class SVMLightRecordWriter extends FileRecordWriter
conf, DEFAULT_CHARSET, encoding, NEW_LINE, out, PATH, writeToAPPEND| Constructor and Description |
|---|
SVMLightRecordWriter() |
SVMLightRecordWriter(Configuration conf) |
SVMLightRecordWriter(File path) |
SVMLightRecordWriter(File path,
boolean append) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(Collection<Writable> record)
Write a record
|
close, getConf, setConfpublic SVMLightRecordWriter()
public SVMLightRecordWriter(File path) throws FileNotFoundException
FileNotFoundExceptionpublic SVMLightRecordWriter(File path, boolean append) throws FileNotFoundException
FileNotFoundExceptionpublic SVMLightRecordWriter(Configuration conf) throws FileNotFoundException
FileNotFoundExceptionpublic void write(Collection<Writable> record) throws IOException
RecordWriterwrite in interface RecordWriterwrite in class FileRecordWriterrecord - the record to writeIOExceptionCopyright © 2017. All rights reserved.