public class LibSvmRecordWriter extends LineRecordWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSIFICATION |
conf, DEFAULT_CHARSET, encoding, NEW_LINE, out, PATH, writeToAPPEND| 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 static final String CLASSIFICATION
public 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 © 2017. All rights reserved.