public final class OrcReader extends Object implements TableReader
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader, which will close the underlying stream.
|
static OrcReader |
create(AlluxioURI uri) |
TableSchema |
getSchema() |
TableRow |
read() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public static OrcReader create(AlluxioURI uri) throws IOException
uri
- the alluxio uri of the orc fileIOException
public TableSchema getSchema()
getSchema
in interface TableReader
public TableRow read() throws IOException
read
in interface TableReader
IOException
- when read failspublic void close() throws IOException
TableReader
close
in interface TableReader
close
in interface Closeable
close
in interface AutoCloseable
IOException
- when failing to close the underlying streamCopyright © 2023. All Rights Reserved.