public class SVMLightRecordReader extends LineRecordReader
conf, inputSplit, lineIndex, locations, splitIndexlistenersAPPEND_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, setConfgetListeners, invokeListeners, setListeners, setListenerspublic void initialize(Configuration conf, InputSplit split) throws java.io.IOException, java.lang.InterruptedException
RecordReaderinitialize in interface RecordReaderinitialize in class LineRecordReaderconf - a configuration for initializationsplit - the split that defines the range of records to readjava.io.IOExceptionjava.lang.InterruptedExceptionpublic boolean hasNext()
RecordReaderhasNext in interface RecordReaderhasNext in class LineRecordReaderpublic java.util.List<Writable> next()
next in interface RecordReadernext in class LineRecordReader