public final class ParquetReader extends java.lang.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, waitcreatepublic static ParquetReader create(AlluxioURI uri) throws java.io.IOException
uri - the URI to the inputjava.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 org.apache.parquet.hadoop.metadata.ParquetMetadata getMetadata()
public 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.