public class SVMLightRecordReader extends LineRecordReader
| Modifier and Type | Field and Description |
|---|---|
static String |
NUM_ATTRIBUTES |
conf, inputSplit, lineIndex, locations, splitIndexlistenersAPPEND_LABEL, LABELS, NAME_SPACE| Constructor and Description |
|---|
SVMLightRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Configuration conf,
InputSplit split)
Called once at initialization.
|
List<Writable> |
next()
Get the next record
|
List<Writable> |
record(URI uri,
DataInputStream dataInputStream)
Load the record from the given DataInputStream
Unlike
RecordReader.next() the internal state of the RecordReader is not modified
Implementations of this method should not close the DataInputStream |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
close, closeIfRequired, getConf, getIterator, getLabels, hasNext, initialize, loadFromMetaData, loadFromMetaData, nextRecord, onLocationOpen, resetgetListeners, invokeListeners, setListeners, setListenerspublic static final String NUM_ATTRIBUTES
public List<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 LineRecordReaderpublic List<Writable> record(URI uri, DataInputStream dataInputStream) throws IOException
RecordReaderRecordReader.next() the internal state of the RecordReader is not modified
Implementations of this method should not close the DataInputStreamrecord in interface RecordReaderrecord in class LineRecordReaderIOException - if error occurs during reading from the input streamCopyright © 2017. All rights reserved.