public final class ParquetReader extends Object implements TableReader
ParquetRow
.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader, which will close the underlying stream.
|
static ParquetReader |
create(AlluxioURI uri)
Creates a parquet reader.
|
org.apache.parquet.hadoop.metadata.ParquetMetadata |
getMetadata() |
TableSchema |
getSchema() |
TableRow |
read() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public static ParquetReader create(AlluxioURI uri) throws IOException
uri
- the URI to the inputIOException
- when failed to create the readerpublic TableSchema getSchema() throws IOException
getSchema
in interface TableReader
IOException
- when failed to read the schemapublic org.apache.parquet.hadoop.metadata.ParquetMetadata getMetadata()
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.