Package org.apache.sysds.runtime.io
Class FrameReader
java.lang.Object
org.apache.sysds.runtime.io.FrameReader
- Direct Known Subclasses:
FrameGenerateReader,FrameGenerateReaderParallel,FrameReaderBinaryBlock,FrameReaderDelta,FrameReaderParquet,FrameReaderProto,FrameReaderTextCell,FrameReaderTextCSV
Base class for all format-specific frame readers. Every reader is required to implement the basic read functionality
but might provide additional custom functionality. Any non-default parameters (e.g., CSV read properties) should be
passed into custom constructors. There is also a factory for creating format-specific readers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getDefColNames(long clen) getDefSchema(long clen) readFrameFromHDFS(String fname, long rlen, long clen) readFrameFromHDFS(String fname, Types.ValueType[] schema, long rlen, long clen) abstract FrameBlockreadFrameFromHDFS(String fname, Types.ValueType[] schema, String[] names, long rlen, long clen) readFrameFromInputStream(InputStream is, long rlen, long clen) readFrameFromInputStream(InputStream is, Types.ValueType[] schema, long rlen, long clen) abstract FrameBlockreadFrameFromInputStream(InputStream is, Types.ValueType[] schema, String[] names, long rlen, long clen)
-
Constructor Details
-
FrameReader
public FrameReader()
-
-
Method Details
-
readFrameFromHDFS
public abstract FrameBlock readFrameFromHDFS(String fname, Types.ValueType[] schema, String[] names, long rlen, long clen) throws IOException, DMLRuntimeException - Throws:
IOExceptionDMLRuntimeException
-
readFrameFromHDFS
public FrameBlock readFrameFromHDFS(String fname, Types.ValueType[] schema, long rlen, long clen) throws IOException, DMLRuntimeException - Throws:
IOExceptionDMLRuntimeException
-
readFrameFromHDFS
public FrameBlock readFrameFromHDFS(String fname, long rlen, long clen) throws IOException, DMLRuntimeException - Throws:
IOExceptionDMLRuntimeException
-
readFrameFromInputStream
public abstract FrameBlock readFrameFromInputStream(InputStream is, Types.ValueType[] schema, String[] names, long rlen, long clen) throws IOException, DMLRuntimeException - Throws:
IOExceptionDMLRuntimeException
-
readFrameFromInputStream
public FrameBlock readFrameFromInputStream(InputStream is, Types.ValueType[] schema, long rlen, long clen) throws IOException, DMLRuntimeException - Throws:
IOExceptionDMLRuntimeException
-
readFrameFromInputStream
public FrameBlock readFrameFromInputStream(InputStream is, long rlen, long clen) throws IOException, DMLRuntimeException - Throws:
IOExceptionDMLRuntimeException
-
getDefSchema
- Throws:
DMLRuntimeException
-
getDefColNames
- Throws:
DMLRuntimeException
-