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