public class SVMLightRecordWriter extends FileRecordWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_FIRST_COLUMN |
static String |
FEATURE_LAST_COLUMN |
protected int |
featureFirstColumn |
protected int |
featureLastColumn |
static String |
HAS_LABELS |
protected boolean |
hasLabel |
static String |
LABEL_FIRST_COLUMN |
static String |
LABEL_LAST_COLUMN |
protected int |
labelFirstColumn |
protected int |
labelLastColumn |
protected boolean |
multilabel |
static String |
MULTILABEL |
static String |
NAME_SPACE |
static String |
UNLABELED |
static String |
ZERO_BASED_INDEXING |
static String |
ZERO_BASED_LABEL_INDEXING |
protected boolean |
zeroBasedIndexing |
protected boolean |
zeroBasedLabelIndexing |
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 |
setConf(Configuration conf)
Set DataVec configuration
|
void |
write(List<Writable> record)
Write next record.
|
close, getConfpublic static final String NAME_SPACE
public static final String FEATURE_FIRST_COLUMN
public static final String FEATURE_LAST_COLUMN
public static final String ZERO_BASED_INDEXING
public static final String ZERO_BASED_LABEL_INDEXING
public static final String HAS_LABELS
public static final String MULTILABEL
public static final String LABEL_FIRST_COLUMN
public static final String LABEL_LAST_COLUMN
public static final String UNLABELED
protected int featureFirstColumn
protected int featureLastColumn
protected boolean zeroBasedIndexing
protected boolean zeroBasedLabelIndexing
protected boolean hasLabel
protected boolean multilabel
protected int labelFirstColumn
protected int labelLastColumn
public SVMLightRecordWriter()
public SVMLightRecordWriter(File path) throws FileNotFoundException
FileNotFoundExceptionpublic SVMLightRecordWriter(File path, boolean append) throws FileNotFoundException
FileNotFoundExceptionpublic SVMLightRecordWriter(Configuration conf) throws FileNotFoundException
FileNotFoundExceptionpublic void setConf(Configuration conf)
setConf in interface ConfigurablesetConf in class FileRecordWriterconf - public void write(List<Writable> record) throws IOException
write in interface RecordWriterwrite in class FileRecordWriterrecord - IOExceptionCopyright © 2017. All rights reserved.