public class CSVRecordReader extends Object implements RecordReader
| Constructor and Description |
|---|
CSVRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
void |
init(File dataFile,
Set<String> fieldsToRead,
RecordReaderConfig recordReaderConfig) |
GenericRow |
next() |
GenericRow |
next(GenericRow reuse) |
void |
rewind() |
public void init(File dataFile, Set<String> fieldsToRead, @Nullable RecordReaderConfig recordReaderConfig) throws IOException
init in interface RecordReaderIOExceptionpublic boolean hasNext()
hasNext in interface RecordReaderpublic GenericRow next()
next in interface RecordReaderpublic GenericRow next(GenericRow reuse)
next in interface RecordReaderpublic void rewind()
throws IOException
rewind in interface RecordReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018–2020 Apache Software Foundation. All rights reserved.