public class SVMLightRecordReader extends LineRecordReader
conf, inputSplit, lineIndex, locations, splitIndex
listeners
APPEND_LABEL, LABELS, NAME_SPACE
Constructor and Description |
---|
SVMLightRecordReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Whether there are anymore records
|
void |
initialize(Configuration conf,
InputSplit split)
Called once at initialization.
|
java.util.List<Writable> |
next()
next() method for getting another K/V pair off disk from the SVMLight text file
|
close, closeIfRequired, getConf, getIterator, getLabels, initialize, loadFromMetaData, loadFromMetaData, nextRecord, onLocationOpen, record, reset, setConf
getListeners, invokeListeners, setListeners, setListeners
public void initialize(Configuration conf, InputSplit split) throws java.io.IOException, java.lang.InterruptedException
RecordReader
initialize
in interface RecordReader
initialize
in class LineRecordReader
conf
- a configuration for initializationsplit
- the split that defines the range of records to readjava.io.IOException
java.lang.InterruptedException
public boolean hasNext()
RecordReader
hasNext
in interface RecordReader
hasNext
in class LineRecordReader
public java.util.List<Writable> next()
next
in interface RecordReader
next
in class LineRecordReader