public class ReaderHDF5 extends MatrixReader
Constructor and Description |
---|
ReaderHDF5(FileFormatPropertiesHDF5 props) |
Modifier and Type | Method and Description |
---|---|
static MatrixBlock |
computeHDF5Size(List<org.apache.hadoop.fs.Path> files,
org.apache.hadoop.fs.FileSystem fs,
String datasetName) |
static long |
readMatrixFromHDF5(BufferedInputStream bis,
String datasetName,
MatrixBlock dest,
int row,
long rlen,
long clen,
int blen) |
MatrixBlock |
readMatrixFromHDFS(String fname,
long rlen,
long clen,
int blen,
long estnnz) |
MatrixBlock |
readMatrixFromInputStream(InputStream is,
long rlen,
long clen,
int blen,
long estnnz) |
public ReaderHDF5(FileFormatPropertiesHDF5 props)
public MatrixBlock readMatrixFromHDFS(String fname, long rlen, long clen, int blen, long estnnz) throws IOException, DMLRuntimeException
readMatrixFromHDFS
in class MatrixReader
IOException
DMLRuntimeException
public MatrixBlock readMatrixFromInputStream(InputStream is, long rlen, long clen, int blen, long estnnz) throws IOException, DMLRuntimeException
readMatrixFromInputStream
in class MatrixReader
IOException
DMLRuntimeException
public static long readMatrixFromHDF5(BufferedInputStream bis, String datasetName, MatrixBlock dest, int row, long rlen, long clen, int blen)
public static MatrixBlock computeHDF5Size(List<org.apache.hadoop.fs.Path> files, org.apache.hadoop.fs.FileSystem fs, String datasetName) throws IOException, DMLRuntimeException
IOException
DMLRuntimeException
Copyright © 2021 The Apache Software Foundation. All rights reserved.