Package org.apache.parquet.hadoop
Class BdecParquetReader
- java.lang.Object
-
- org.apache.parquet.hadoop.BdecParquetReader
-
- All Implemented Interfaces:
AutoCloseable
public class BdecParquetReader extends Object implements AutoCloseable
BDEC specific parquet reader.Resides in parquet package because, it uses
InternalParquetRecordReaderthat is package private.
-
-
Constructor Summary
Constructors Constructor Description BdecParquetReader(byte[] data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the reader.List<Object>read()Reads the current row, i.e.static voidreadFileIntoWriter(byte[] data, BdecParquetWriter outputWriter)Reads the input data using Parquet reader and writes them using a Parquet Writer.
-
-
-
Constructor Detail
-
BdecParquetReader
public BdecParquetReader(byte[] data) throws IOException- Parameters:
data- buffer where the data that has to be read resides.- Throws:
IOException
-
-
Method Detail
-
read
public List<Object> read() throws IOException
Reads the current row, i.e. list of values.- Returns:
- current row
- Throws:
IOException
-
close
public void close() throws IOExceptionClose the reader.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
readFileIntoWriter
public static void readFileIntoWriter(byte[] data, BdecParquetWriter outputWriter)Reads the input data using Parquet reader and writes them using a Parquet Writer.- Parameters:
data- input data to be read first and then written with outputWriteroutputWriter- output parquet writer
-
-