public interface TableReader extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader, which will close the underlying stream.
|
static TableReader |
create(AlluxioURI uri,
PartitionInfo pInfo) |
TableSchema |
getSchema() |
TableRow |
read() |
static TableReader create(AlluxioURI uri, PartitionInfo pInfo) throws IOException
uri
- the URI to the inputpInfo
- the partition info from catalog serviceIOException
- when failed to create the readerTableSchema getSchema() throws IOException
IOException
- when failed to read the schemaTableRow read() throws IOException
IOException
- when read failsvoid close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
- when failing to close the underlying streamCopyright © 2023. All Rights Reserved.