public class HDF5Utils extends Object
| Constructor and Description |
|---|
HDF5Utils() |
| Modifier and Type | Method and Description |
|---|---|
static Stream<Object> |
flatten(Object[] array) |
static HDF5Attribute |
getAttribute(String pathName,
String key,
io.jhdf.HdfFile hdf5File)
This function returns and HDF5Attribute object for use when Drill maps the attributes.
|
static Class<?> |
getDatasetClass(String path,
io.jhdf.HdfFile reader)
This function gets the type of dataset
|
static TypeProtos.MinorType |
getDataType(io.jhdf.object.datatype.DataType dataType)
This function returns the Drill data type of a given HDF5 dataset.
|
static String |
getNameFromPath(String path)
This helper function returns the name of a HDF5 record from a data path
|
static boolean[][] |
toBooleanMatrix(Object[] inputArray) |
static byte[][] |
toByteMatrix(Object[] inputArray) |
static double[][] |
toDoubleMatrix(Object[] inputArray) |
static float[][] |
toFloatMatrix(Object[] inputArray) |
static int[][] |
toIntMatrix(Object[] inputArray) |
static long[][] |
toLongMatrix(Object[] inputArray) |
static Object[] |
toMatrix(Object[] inputArray) |
static short[][] |
toShortMatrix(Object[] inputArray) |
public static HDF5Attribute getAttribute(String pathName, String key, io.jhdf.HdfFile hdf5File)
pathName - The path to retrieve attributes fromkey - The key for the specific attribute you are retrievinghdf5File - The hdfFile reader object for the file you are queryingpublic static TypeProtos.MinorType getDataType(io.jhdf.object.datatype.DataType dataType)
dataType - The input data set.public static Class<?> getDatasetClass(String path, io.jhdf.HdfFile reader)
path - The path of the datasetreader - The HDF5 readerpublic static String getNameFromPath(String path)
path - Path to HDF5 datapublic static boolean[][] toBooleanMatrix(Object[] inputArray)
public static byte[][] toByteMatrix(Object[] inputArray)
public static short[][] toShortMatrix(Object[] inputArray)
public static int[][] toIntMatrix(Object[] inputArray)
public static long[][] toLongMatrix(Object[] inputArray)
public static float[][] toFloatMatrix(Object[] inputArray)
public static double[][] toDoubleMatrix(Object[] inputArray)
Copyright © 2021 The Apache Software Foundation. All rights reserved.