Class ParquetAvroRecordReader
- java.lang.Object
-
- org.apache.pinot.plugin.inputformat.parquet.ParquetAvroRecordReader
-
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,RecordReader
public class ParquetAvroRecordReader extends Object implements RecordReader
Avro Record reader for Parquet file. This reader doesn't read parquet file with incompatible Avro schemas, e.g. INT96, DECIMAL. Please useParquetNativeRecordReaderinstead.For More info on Avro to Parquet schema conversion: https://javadoc.io/doc/org.apache.parquet/parquet-avro/latest/index.html
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParquetAvroRecordReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()voidinit(File dataFile, Set<String> fieldsToRead, RecordReaderConfig recordReaderConfig)GenericRownext()GenericRownext(GenericRow reuse)voidrewind()
-
-
-
Method Detail
-
init
public void init(File dataFile, @Nullable Set<String> fieldsToRead, @Nullable RecordReaderConfig recordReaderConfig) throws IOException
- Specified by:
initin interfaceRecordReader- Throws:
IOException
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceRecordReader
-
next
public GenericRow next() throws IOException
- Specified by:
nextin interfaceRecordReader- Throws:
IOException
-
next
public GenericRow next(GenericRow reuse) throws IOException
- Specified by:
nextin interfaceRecordReader- Throws:
IOException
-
rewind
public void rewind() throws IOException- Specified by:
rewindin interfaceRecordReader- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-