public final class CsvReader extends java.lang.Object implements TableReader
CsvRow.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reader, which will close the underlying stream.
|
static CsvReader |
create(AlluxioURI uri,
PartitionInfo pInfo)
Creates a CSV reader.
|
TableSchema |
getSchema() |
TableRow |
read() |
public static CsvReader create(AlluxioURI uri, PartitionInfo pInfo) throws java.io.IOException
create in interface TableReaderuri - the URI to the inputpInfo - the partition infojava.io.IOException - when failed to create the readerpublic TableSchema getSchema() throws java.io.IOException
getSchema in interface TableReaderjava.io.IOException - when failed to read the schemapublic TableRow read() throws java.io.IOException
read in interface TableReaderjava.io.IOException - when read failspublic void close()
throws java.io.IOException
TableReaderclose in interface TableReaderclose in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException - when failing to close the underlying streamCopyright © 2022. All Rights Reserved.