public final class DatasetReader
extends java.lang.Object
This class handles converting the ByteBuffer
obtained from the file
into a Java array containing the data. It makes use of Java NIO ByteBuffers
bulk read methods where possible to enable high performance IO.
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
readDataset(DataType type,
java.nio.ByteBuffer buffer,
int[] dimensions,
HdfBackingStorage hdfBackingStorage)
This converts a buffer into a Java object representing this dataset.
|
static java.lang.Object |
readDataset(DataType type,
java.nio.ByteBuffer buffer,
int elements,
HdfBackingStorage hdfBackingStorage) |
public static java.lang.Object readDataset(DataType type, java.nio.ByteBuffer buffer, int[] dimensions, HdfBackingStorage hdfBackingStorage)
type
- The data type of this datasetbuffer
- The buffer containing the datasetdimensions
- The dimensions of this datasethdfBackingStorage
- The file channel for reading the filepublic static java.lang.Object readDataset(DataType type, java.nio.ByteBuffer buffer, int elements, HdfBackingStorage hdfBackingStorage)