public class SVMLightRecordReader extends LineRecordReader
| Modifier and Type | Field and Description |
|---|---|
static String |
NUM_ATTRIBUTES |
confAPPEND_LABEL, LABELS, NAME_SPACE| Constructor and Description |
|---|
SVMLightRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Configuration conf,
InputSplit split)
Called once at initialization.
|
Collection<Writable> |
next()
Get the next record
|
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
close, getConf, hasNext, initializepublic static final String NUM_ATTRIBUTES
public Collection<Writable> next()
RecordReadernext in interface RecordReadernext in class LineRecordReaderpublic void initialize(Configuration conf, InputSplit split) throws IOException, InterruptedException
RecordReaderinitialize in interface RecordReaderinitialize in class LineRecordReaderconf - a configuration for initializationsplit - the split that defines the range of records to readIOExceptionInterruptedExceptionpublic void setConf(Configuration conf)
ConfigurablesetConf in interface ConfigurablesetConf in class LineRecordReaderCopyright © 2015. All rights reserved.