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() |
T |
read() |
static <T> ParquetReader.Builder<T> |
read(InputFile file) |
@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 void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public static <T> ParquetReader.Builder<T> read(InputFile file) throws IOException
IOException
public static <T> ParquetReader.Builder<T> builder(ReadSupport<T> readSupport, org.apache.hadoop.fs.Path path)
Copyright © 2019 The Apache Software Foundation. All rights reserved.