T - type of the materialized recordspublic class ParquetRecordReader<T> extends org.apache.hadoop.mapreduce.RecordReader<Void,T>
ParquetInputFormat| Constructor and Description |
|---|
ParquetRecordReader(ReadSupport<T> readSupport) |
ParquetRecordReader(ReadSupport<T> readSupport,
FilterCompat.Filter filter) |
ParquetRecordReader(ReadSupport<T> readSupport,
UnboundRecordFilter filter)
Deprecated.
will be removed in 2.0.0.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Void |
getCurrentKey()
always returns null
|
long |
getCurrentRowIndex() |
T |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.mapred.Reporter reporter) |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
public ParquetRecordReader(ReadSupport<T> readSupport)
readSupport - Object which helps reads files of the given type, e.g. Thrift, Avro.public ParquetRecordReader(ReadSupport<T> readSupport, FilterCompat.Filter filter)
readSupport - Object which helps reads files of the given type, e.g. Thrift, Avro.filter - for filtering individual records@Deprecated public ParquetRecordReader(ReadSupport<T> readSupport, UnboundRecordFilter filter)
readSupport - Object which helps reads files of the given type, e.g. Thrift, Avro.filter - for filtering individual recordspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionpublic Void getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionInterruptedExceptionpublic T getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionInterruptedExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionInterruptedExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionInterruptedExceptionpublic long getCurrentRowIndex()
throws IOException
IOExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.