Package org.apache.sysds.runtime.io
Class FrameReaderParquet
java.lang.Object
org.apache.sysds.runtime.io.FrameReader
org.apache.sysds.runtime.io.FrameReaderParquet
- Direct Known Subclasses:
FrameReaderParquetParallel
Single-threaded frame parquet reader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadFrameFromHDFS(String fname, Types.ValueType[] schema, String[] names, long rlen, long clen) Reads a Parquet file from HDFS and converts it into a FrameBlock.readFrameFromInputStream(InputStream is, Types.ValueType[] schema, String[] names, long rlen, long clen) Methods inherited from class org.apache.sysds.runtime.io.FrameReader
getDefColNames, getDefSchema, readFrameFromHDFS, readFrameFromHDFS, readFrameFromInputStream, readFrameFromInputStream
-
Constructor Details
-
FrameReaderParquet
public FrameReaderParquet()
-
-
Method Details
-
readFrameFromHDFS
public FrameBlock readFrameFromHDFS(String fname, Types.ValueType[] schema, String[] names, long rlen, long clen) throws IOException, DMLRuntimeException Reads a Parquet file from HDFS and converts it into a FrameBlock.- Specified by:
readFrameFromHDFSin classFrameReader- Parameters:
fname- The HDFS file path to the Parquet file.schema- The expected data types of the columns.names- The names of the columns.rlen- The expected number of rows.clen- The expected number of columns.- Returns:
- A FrameBlock containing the data read from the Parquet file.
- Throws:
IOExceptionDMLRuntimeException
-
readFrameFromInputStream
public FrameBlock readFrameFromInputStream(InputStream is, Types.ValueType[] schema, String[] names, long rlen, long clen) throws IOException, DMLRuntimeException - Specified by:
readFrameFromInputStreamin classFrameReader- Throws:
IOExceptionDMLRuntimeException
-