public class ParquetReader<T> extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
ParquetReader.Builder<T> |
| Constructor and Description |
|---|
ParquetReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path file,
ReadSupport<T> readSupport)
Deprecated.
|
ParquetReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path file,
ReadSupport<T> readSupport,
UnboundRecordFilter unboundRecordFilter)
Deprecated.
|
ParquetReader(org.apache.hadoop.fs.Path file,
ReadSupport<T> readSupport)
Deprecated.
|
ParquetReader(org.apache.hadoop.fs.Path file,
ReadSupport<T> readSupport,
UnboundRecordFilter unboundRecordFilter)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ParquetReader.Builder<T> |
builder(ReadSupport<T> readSupport,
org.apache.hadoop.fs.Path path) |
void |
close() |
long |
getCurrentRowIndex() |
T |
read() |
static <T> ParquetReader.Builder<T> |
read(InputFile file) |
static <T> ParquetReader.Builder<T> |
read(InputFile file,
ParquetConfiguration conf) |
@Deprecated public ParquetReader(org.apache.hadoop.fs.Path file, ReadSupport<T> readSupport) throws IOException
builder(ReadSupport, Path)file - the file to readreadSupport - to materialize recordsIOException - if there is an error while reading@Deprecated public ParquetReader(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path file, ReadSupport<T> readSupport) throws IOException
builder(ReadSupport, Path)conf - the configurationfile - the file to readreadSupport - to materialize recordsIOException - if there is an error while reading@Deprecated public ParquetReader(org.apache.hadoop.fs.Path file, ReadSupport<T> readSupport, UnboundRecordFilter unboundRecordFilter) throws IOException
builder(ReadSupport, Path)file - the file to readreadSupport - to materialize recordsunboundRecordFilter - the filter to use to filter recordsIOException - if there is an error while reading@Deprecated public ParquetReader(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path file, ReadSupport<T> readSupport, UnboundRecordFilter unboundRecordFilter) throws IOException
builder(ReadSupport, Path)conf - the configurationfile - the file to readreadSupport - to materialize recordsunboundRecordFilter - the filter to use to filter recordsIOException - if there is an error while readingpublic T read() throws IOException
IOException - if there is an error while readingpublic long getCurrentRowIndex()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic static <T> ParquetReader.Builder<T> read(InputFile file) throws IOException
IOExceptionpublic static <T> ParquetReader.Builder<T> read(InputFile file, ParquetConfiguration conf) throws IOException
IOExceptionpublic static <T> ParquetReader.Builder<T> builder(ReadSupport<T> readSupport, org.apache.hadoop.fs.Path path)
Copyright © 2023 The Apache Software Foundation. All rights reserved.