public class MatlabRecordReader extends FileRecordReader
appendLabel, charset, conf, currentUri, labels, locationsIteratorinputSplit, listeners, streamCreatorFnAPPEND_LABEL, LABELS, NAME_SPACE| Constructor and Description |
|---|
MatlabRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Whether there are anymore records
|
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 |
close, doInitialize, getConf, getCurrentLabel, getLabel, getLabels, initialize, initialize, loadFromMetaData, loadFromMetaData, next, nextRecord, reset, resetSupported, setConf, setLabelsbatchesSupported, getListeners, invokeListeners, setListeners, setListenerspublic boolean hasNext()
RecordReaderhasNext in interface RecordReaderhasNext in class FileRecordReaderpublic List<Writable> next()
RecordReadernext in interface RecordReadernext in class FileRecordReaderpublic 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 FileRecordReaderIOException - if error occurs during reading from the input streamCopyright © 2019. All rights reserved.